/*
Theme Name: Port Trade Slovakia - Glass  
Description: Modern liquid glass theme for Port Trade Slovakia s.r.o. - porttrade.sk with enhanced mobile text visibility and proper menu layering
Version: 2.8
Author: Erik Kokinda - DiverzityStudios.sk
*/

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

/* Base Body Styles - Dark Theme by Default */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    background: 
        radial-gradient(ellipse at top left, rgba(0, 188, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #050505 0%, #0f0f0f 30%, #1a1a1a 70%, #080808 100%);
    background-color: #050505;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* Construction Page - Dark Base */
body.page-template-page-stavby {
    background: 
        radial-gradient(ellipse at top left, rgba(255, 165, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(255, 140, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0a0606 0%, #1a1010 30%, #2a1a1a 70%, #0f0808 100%);
    background-color: #0a0606;
    background-attachment: fixed;
}

/* Finance Page - Dark Base */
body.page-template-page-financne-sluzby {
    background: 
        radial-gradient(ellipse at top left, rgba(34, 197, 94, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, #050a08 0%, #0f1a15 30%, #1a2a22 70%, #080f0c 100%);
    background-color: #050a08;
    background-attachment: fixed;
}

/* Page-specific content styling */
body.page-template-page-stavby .content-section {
    border: 1px solid rgba(255, 165, 0, 0.15);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 16px 40px rgba(255, 165, 0, 0.08);
}

body.page-template-page-financne-sluzby .content-section {
    border: 1px solid rgba(34, 197, 94, 0.15);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 16px 40px rgba(34, 197, 94, 0.08);
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 140px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 120px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
}

.main-nav a:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Home Page Split Screen - Performance Optimized */
.split-screen {
    height: 100vh;
    display: flex;
    overflow: hidden;
    margin-top: 100px;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 100%);
    contain: layout style paint;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.split-side {
    position: relative;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    will-change: width;
    transform: translateZ(0);
}

/* Background Image Container */
.split-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.split-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    filter: brightness(0.7) saturate(1.2) contrast(1.1);
    transform: scale(1.05);
}

/* Glassmorphism Overlay */
.split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, 
            rgba(0, 0, 0, 0.4) 0%, 
            rgba(0, 0, 0, 0.2) 50%, 
            rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(2px) saturate(1.5);
    -webkit-backdrop-filter: blur(2px) saturate(1.5);
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Content Layer */
.split-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(30px) saturate(1.8);
    -webkit-backdrop-filter: blur(30px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 16px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    max-width: 400px;
}

.split-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    z-index: -1;
    will-change: transform;
    transform: translateZ(0);
}

.split-side:hover {
    width: 60%;
}

.split-side:hover + .split-side {
    width: 40%;
}

/* Hover Effects for Background Images */
.split-side:hover .split-bg-image {
    transform: scale(1.08);
    filter: brightness(0.8) saturate(1.3) contrast(1.2);
}

.split-side:hover .split-overlay {
    background: 
        linear-gradient(135deg, 
            rgba(0, 0, 0, 0.3) 0%, 
            rgba(0, 0, 0, 0.1) 50%, 
            rgba(0, 0, 0, 0.5) 100%);
    backdrop-filter: blur(1px) saturate(1.8);
    -webkit-backdrop-filter: blur(1px) saturate(1.8);
}

.split-side:hover .split-content {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(40px) saturate(2.0);
    -webkit-backdrop-filter: blur(40px) saturate(2.0);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 20px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px) scale(1.02);
}

/* Construction Side - Orange Theme */
.split-left .split-overlay {
    background: 
        linear-gradient(135deg, 
            rgba(255, 165, 0, 0.1) 0%, 
            rgba(0, 0, 0, 0.2) 50%, 
            rgba(255, 140, 0, 0.15) 100%);
}

.split-left:hover .split-overlay {
    background: 
        linear-gradient(135deg, 
            rgba(255, 165, 0, 0.15) 0%, 
            rgba(0, 0, 0, 0.1) 50%, 
            rgba(255, 140, 0, 0.2) 100%);
}

.split-left .split-content {
    border: 1px solid rgba(255, 165, 0, 0.2);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 16px 40px rgba(255, 165, 0, 0.1);
}

.split-left:hover .split-content {
    border: 1px solid rgba(255, 165, 0, 0.4);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 20px 50px rgba(255, 165, 0, 0.2);
}

/* Finance Side - Blue/Green Theme */
.split-right .split-overlay {
    background: 
        linear-gradient(135deg, 
            rgba(59, 130, 246, 0.1) 0%, 
            rgba(0, 0, 0, 0.2) 50%, 
            rgba(16, 185, 129, 0.1) 100%);
}

.split-right:hover .split-overlay {
    background: 
        linear-gradient(135deg, 
            rgba(59, 130, 246, 0.15) 0%, 
            rgba(0, 0, 0, 0.1) 50%, 
            rgba(16, 185, 129, 0.15) 100%);
}

.split-right .split-content {
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 16px 40px rgba(59, 130, 246, 0.1);
}

.split-right:hover .split-content {
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 20px 50px rgba(59, 130, 246, 0.2);
}

/* Optimized hover effects with separate transitions */
.split-side {
    border-transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.split-side:hover {
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Backdrop filter optimization */
@supports (backdrop-filter: blur(20px)) {
    .split-side:hover {
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(20px)) {
    .split-side {
        background: rgba(30, 30, 30, 0.9);
    }
    .split-side:hover {
        background: rgba(45, 45, 45, 0.95);
    }
}

.split-left {
    background: linear-gradient(135deg, 
        rgba(0, 188, 212, 0.25) 0%, 
        rgba(30, 30, 30, 0.95) 25%,
        rgba(45, 45, 45, 0.9) 50%,
        rgba(0, 188, 212, 0.15) 75%,
        rgba(30, 30, 30, 0.95) 100%);
    color: white;
    margin-right: 1px;
    position: relative;
    overflow: hidden;
}

.split-right {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.25) 0%, 
        rgba(15, 15, 15, 0.95) 25%,
        rgba(25, 25, 25, 0.9) 50%,
        rgba(0, 188, 212, 0.15) 75%,
        rgba(15, 15, 15, 0.95) 100%); 
    color: white;
    margin-left: 1px;
    position: relative;
    overflow: hidden;
}

.split-content {
    text-align: center;
    z-index: 2;
    position: relative;
    will-change: transform;
    transform: translateZ(0);
}

.split-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.split-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.7) 0%, rgba(59, 130, 246, 0.6) 100%);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease-out 0.6s both;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 8px 32px rgba(0, 188, 212, 0.3),
        0 4px 16px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.9) 0%, rgba(59, 130, 246, 0.8) 100%);
    border: 1px solid rgba(255,255,255,0.3);
    transform: translateY(-4px) scale(1.05);
    backdrop-filter: blur(25px) saturate(2.0);
    -webkit-backdrop-filter: blur(25px) saturate(2.0);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 16px 48px rgba(0, 188, 212, 0.4),
        0 8px 32px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Content */
.page-content {
    max-width: 1200px;
    margin: 140px auto 60px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 20px 60px rgba(0,0,0,0.25),
        0 8px 32px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.page-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.content-section {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(30px) saturate(1.8);
    -webkit-backdrop-filter: blur(30px) saturate(1.8);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 16px 40px rgba(0,0,0,0.2),
        0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(1.8);
    -webkit-backdrop-filter: blur(25px) saturate(1.8);
    padding: 30px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 12px 32px rgba(0,0,0,0.15),
        0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(35px) saturate(2.0);
    -webkit-backdrop-filter: blur(35px) saturate(2.0);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 20px 60px rgba(0,0,0,0.25),
        0 8px 32px rgba(0,0,0,0.15);
}

.service-card h3 {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(30px) saturate(1.8);
    -webkit-backdrop-filter: blur(30px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 16px 40px rgba(0,0,0,0.2),
        0 4px 16px rgba(0,0,0,0.1);
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.05) translateY(-8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(40px) saturate(2.0);
    -webkit-backdrop-filter: blur(40px) saturate(2.0);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 24px 60px rgba(0,0,0,0.3),
        0 8px 32px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    opacity: 1;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(35px) saturate(1.8);
    -webkit-backdrop-filter: blur(35px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 20px 60px rgba(0,0,0,0.25),
        0 8px 32px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 4px 12px rgba(0,0,0,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border: 1px solid rgba(0, 188, 212, 0.5);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px) saturate(2.0);
    -webkit-backdrop-filter: blur(25px) saturate(2.0);
    box-shadow: 
        0 0 0 4px rgba(0, 188, 212, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.12) inset,
        0 4px 16px rgba(0, 188, 212, 0.2);
    transform: translateY(-2px);
}

.submit-button {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.8) 0%, rgba(59, 130, 246, 0.6) 100%);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    color: white;
    padding: 18px 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 8px 32px rgba(0, 188, 212, 0.35),
        0 4px 16px rgba(0,0,0,0.15);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    background: linear-gradient(135deg, rgba(0, 188, 212, 1.0) 0%, rgba(59, 130, 246, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
    backdrop-filter: blur(25px) saturate(2.0);
    -webkit-backdrop-filter: blur(25px) saturate(2.0);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 16px 48px rgba(0, 188, 212, 0.4),
        0 8px 32px rgba(0,0,0,0.2);
}

/* Footer */
.site-footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(40px) saturate(1.8);
    -webkit-backdrop-filter: blur(40px) saturate(1.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 -8px 32px rgba(0,0,0,0.15);
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive */
/* Additional Glass Elements */
.contact-message {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}

.contact-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: rgba(34, 197, 94, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.contact-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Tables and Lists */
table {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

th, td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

/* Links and Text */
a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

a:hover {
    color: rgba(255, 255, 255, 1);
}

p, li, span {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 188, 212, 0.6);
}

/* Apple-style Refinements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 188, 212, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(139, 69, 19, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Enhanced Glass Card Hover Effects */
.service-card::before,
.content-section::before,
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.service-card:hover::before,
.gallery-item:hover::before {
    opacity: 1;
}

/* Subtle Animations - Optimized */
@keyframes float {
    0%, 100% { transform: translate3d(0, 0px, 0); }
    50% { transform: translate3d(0, -10px, 0); }
}

.split-content {
    animation: float 8s ease-in-out infinite;
    animation-play-state: running;
}

/* Pause animation on hover for better performance */
.split-side:hover .split-content {
    animation-play-state: paused;
    transform: translate3d(0, -5px, 0);
    transition: transform 0.3s ease;
}

/* Enhanced focus states with Apple-style rings */
.main-nav a:focus,
.cta-button:focus,
.submit-button:focus {
    outline: none;
    box-shadow: 
        0 0 0 4px rgba(0, 188, 212, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

/* Refined text selection */
::selection {
    background: rgba(0, 188, 212, 0.4);
    color: rgba(255, 255, 255, 1);
}

::-moz-selection {
    background: rgba(0, 188, 212, 0.4);
    color: rgba(255, 255, 255, 1);
}

/* Enhanced table styling */
table {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px) saturate(1.8);
    -webkit-backdrop-filter: blur(30px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 16px 40px rgba(0,0,0,0.2);
}

th {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Button - Always Visible */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    padding: 12px;
    z-index: 10002;
    position: relative;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: rgba(255, 255, 255, 1);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    transform-origin: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: rgba(0, 188, 212, 1);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: rgba(0, 188, 212, 1);
}

@media (max-width: 1024px) {
    /* Mobile/Tablet Responsive Styles */
    .site-header {
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(40px) saturate(1.8);
        -webkit-backdrop-filter: blur(40px) saturate(1.8);
        border-bottom: 1px solid rgba(0, 188, 212, 0.3);
        box-shadow: 
            0 1px 0 rgba(255, 255, 255, 0.08) inset,
            0 8px 32px rgba(0, 0, 0, 0.4);
        z-index: 10001;
        position: fixed;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: 80px;
        padding: 15px 20px;
    }
    
    .logo-image {
        height: 90px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide desktop navigation on tablets */
    .main-nav {
        display: none !important;
    }
    
    .main-nav.show {
        display: block !important;
    }
    
    /* Apple-Style Mobile Menu - Completely Matte */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: 
            linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(5, 5, 5, 0.99) 100%),
            rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(50px) saturate(0.5) brightness(0.3);
        -webkit-backdrop-filter: blur(50px) saturate(0.5) brightness(0.3);
        z-index: 10001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        transform: scale(1.05);
    }
    
    /* Add extra overlay to ensure complete coverage */
    .main-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: -1;
    }
    
    .main-nav.show {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }
    
    .main-nav ul {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        height: 100vh;
        margin: 0;
        padding: 160px 20px 40px 20px;
        list-style: none;
        gap: 0;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    }
    
    .main-nav li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav.show li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .main-nav.show li:nth-child(1) { transition-delay: 0.05s; }
    .main-nav.show li:nth-child(2) { transition-delay: 0.1s; }
    .main-nav.show li:nth-child(3) { transition-delay: 0.15s; }
    .main-nav.show li:nth-child(4) { transition-delay: 0.2s; }
    .main-nav.show li:nth-child(5) { transition-delay: 0.25s; }
    .main-nav.show li:nth-child(6) { transition-delay: 0.3s; }
    
    .main-nav a {
        color: rgba(255, 255, 255, 0.92) !important;
        text-decoration: none !important;
        font-size: 1.125rem !important;
        font-weight: 400 !important;
        letter-spacing: 0.5px !important;
        padding: 20px 24px !important;
        display: block !important;
        text-align: left !important;
        transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1) !important;
        position: relative !important;
        background: none !important;
        border-radius: 0 !important;
        line-height: 1.4 !important;
    }
    
    .main-nav a:hover {
        color: rgba(0, 188, 212, 1) !important;
        background: rgba(255, 255, 255, 0.04) !important;
        transform: none !important;
    }
    
    .main-nav a:active {
        background: rgba(255, 255, 255, 0.08) !important;
        transform: scale(0.98) !important;
    }
    
    /* Homepage Mobile - Dark Background for Glassmorphism */
    .split-screen {
        flex-direction: column;
        margin-top: 80px;
        height: auto;
        min-height: calc(100vh - 80px);
        background: 
            radial-gradient(ellipse at center, rgba(0, 188, 212, 0.15) 0%, transparent 70%),
            radial-gradient(ellipse at bottom, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
            linear-gradient(135deg, #050505 0%, #0f0f0f 30%, #1a1a1a 70%, #080808 100%) !important;
    }
    
    .split-side {
        width: 100% !important;
        height: 50vh;
        min-height: 400px;
    }
    
    .split-side:hover {
        width: 100% !important;
    }
    
    .split-side:hover + .split-side {
        width: 100% !important;
    }
    
    .split-bg-image {
        transform: scale(1.02);
    }
    
    .split-side:hover .split-bg-image {
        transform: scale(1.05);
    }
    
    .split-content {
        padding: 30px;
        max-width: 350px;
    }
    
    .split-side {
        width: 100% !important;
        min-height: 50vh;
        margin: 0 !important;
        border-radius: 0;
        backdrop-filter: blur(35px) saturate(1.8) !important;
        -webkit-backdrop-filter: blur(35px) saturate(1.8) !important;
        border: 1px solid rgba(0, 188, 212, 0.15);
    }
    
    .split-left {
        background: linear-gradient(135deg, 
            rgba(0, 188, 212, 0.25) 0%, 
            rgba(10, 10, 10, 0.98) 20%,
            rgba(20, 20, 20, 0.95) 80%,
            rgba(0, 188, 212, 0.15) 100%) !important;
    }
    
    .split-right {
        background: linear-gradient(135deg, 
            rgba(59, 130, 246, 0.25) 0%, 
            rgba(5, 5, 5, 0.98) 20%,
            rgba(15, 15, 15, 0.95) 80%,
            rgba(0, 188, 212, 0.15) 100%) !important;
    }
    
    .split-content h2 {
        font-size: 2rem;
        background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        text-shadow: 0 4px 12px rgba(255, 255, 255, 0.4) !important;
        font-weight: 800 !important;
        text-align: center;
    }
    
    .split-content p {
        font-size: 1rem;
        padding: 0 20px;
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
        text-align: center;
        font-weight: 400;
    }
    
    /* Page Content Mobile - Enhanced Glassmorphism on Dark Background */
    .page-content {
        margin: 100px 15px 60px;
        padding: 30px 20px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.06) !important;
        backdrop-filter: blur(40px) saturate(1.8) !important;
        -webkit-backdrop-filter: blur(40px) saturate(1.8) !important;
        border: 1px solid rgba(0, 188, 212, 0.2) !important;
        box-shadow: 
            0 1px 0 rgba(255, 255, 255, 0.12) inset,
            0 20px 60px rgba(0, 188, 212, 0.2),
            0 8px 32px rgba(0,0,0,0.3) !important;
    }
    
    .content-section {
        padding: 25px 20px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(30px) saturate(1.8) !important;
        -webkit-backdrop-filter: blur(30px) saturate(1.8) !important;
        border: 1px solid rgba(0, 188, 212, 0.15) !important;
        box-shadow: 
            0 1px 0 rgba(255, 255, 255, 0.1) inset,
            0 12px 32px rgba(0, 188, 212, 0.15) !important;
    }
    
    /* Mobile Page-Specific Content Styling */
    body.page-template-page-stavby .content-section {
        border: 1px solid rgba(255, 165, 0, 0.2) !important;
        box-shadow: 
            0 1px 0 rgba(255, 255, 255, 0.1) inset,
            0 12px 32px rgba(255, 165, 0, 0.15) !important;
    }
    
    body.page-template-page-financne-sluzby .content-section {
        border: 1px solid rgba(34, 197, 94, 0.2) !important;
        box-shadow: 
            0 1px 0 rgba(255, 255, 255, 0.1) inset,
            0 12px 32px rgba(34, 197, 94, 0.15) !important;
    }
    
    .page-title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 25px;
        background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3) !important;
        font-weight: 700 !important;
        position: relative;
    }
    
    /* Enhanced text visibility for all headings on mobile */
    h1, h2, h3, h4, h5, h6 {
        background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        text-shadow: 0 2px 6px rgba(255, 255, 255, 0.2) !important;
        font-weight: 600 !important;
    }
    
    /* Enhanced body text visibility */
    p, li, span, div {
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
        background: rgba(255, 255, 255, 0.07) !important;
        backdrop-filter: blur(30px) saturate(1.8) !important;
        -webkit-backdrop-filter: blur(30px) saturate(1.8) !important;
        border: 1px solid rgba(0, 188, 212, 0.15) !important;
        border-radius: 18px;
        box-shadow: 
            0 1px 0 rgba(255, 255, 255, 0.1) inset,
            0 12px 32px rgba(0, 188, 212, 0.12) !important;
    }
    
    /* Mobile CTA Buttons */
    .cta-button {
        background: linear-gradient(135deg, rgba(0, 188, 212, 0.8) 0%, rgba(59, 130, 246, 0.7) 100%);
        border: 1px solid rgba(0, 188, 212, 0.3);
        box-shadow: 
            0 1px 0 rgba(255, 255, 255, 0.15) inset,
            0 8px 32px rgba(0, 188, 212, 0.4);
    }
    
    .cta-button:hover {
        background: linear-gradient(135deg, rgba(0, 188, 212, 1.0) 0%, rgba(59, 130, 246, 0.9) 100%);
        box-shadow: 
            0 1px 0 rgba(255, 255, 255, 0.2) inset,
            0 12px 40px rgba(0, 188, 212, 0.5);
    }
    
    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    /* Contact Form Mobile */
    .contact-form {
        padding: 25px 20px;
    }
    
    /* Contact page grid fix */
    .page-content > div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 480px) {
    /* FORCE DARK BACKGROUND ON SMALL MOBILE TOO */
    body,
    body[class*="page"],
    body[class*="single"],
    body[class*="home"] {
        background: 
            radial-gradient(ellipse at top left, rgba(0, 188, 212, 0.12) 0%, transparent 50%),
            radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
            radial-gradient(ellipse at bottom left, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
            linear-gradient(135deg, #050505 0%, #0f0f0f 30%, #1a1a1a 70%, #080808 100%) !important;
        background-attachment: fixed !important;
        background-color: #050505 !important;
    }
    
    .logo-image {
        height: 50px;
    }
    
    .split-content h2 {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .main-nav a {
        font-size: 1.2rem;
        padding: 18px 0;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .page-content {
        margin: 90px 10px 40px;
        padding: 25px 15px;
    }
    
    /* Force all containers to have proper backgrounds */
    .page-content,
    .content-section,
    .service-card,
    .contact-form {
        background-color: transparent !important;
    }
}

@media (max-width: 480px) {
    .split-content h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 20px;
    }
}

