/* Shared Styles for Ishiros Website */

/* Sticky Navbar Support - Enhanced for Visibility */
header,
header.sticky {
    position: -webkit-sticky !important;
    /* Safari */
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Font Setup */
html {
    overflow-x: clip;
    /* Prevent horizontal scroll at root level - allows sticky to work */
}

body {
    font-family: "Manrope", sans-serif;
    overflow-x: visible;
    /* MUST be visible for sticky to work on child elements */
    width: 100%;
}

/* Custom Range Slider Styles */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #224573;
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 0 4px rgba(34, 69, 115, 0.2);
}

input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border: none;
    border-radius: 50%;
    background: #224573;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(34, 69, 115, 0.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e5e7eb;
    border-radius: 2px;
}

.dark input[type=range]::-webkit-slider-runnable-track {
    background: #374151;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Scrollbar Hide Utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Background Effects */
.blob-bg {
    background-image: url(https://lh3.googleusercontent.com/aida-public/AB6AXuC284qVnhMCSYgM3A0m8tyGkCTYHXLUf00O4cRy-N2AFdeLE9e1EdZWB3h-d7gRT5A1V_8G1l6ABvJ6T4e1kBxbukmFA7ggZG4nZVwoY5mGsIAOy1ype3iTAgKhQRTCtiR7kSMDhV7flaDFeMKwMZ4X8GO1le6x__q2KbKBMqsQCIKNWASfCtugXvr7Lrgr4hkoq8iWwkEKOLa84weG-BxGgrc2npWKjeCN4egmhCcgZ3nqGyJGU5Q16tjkB9hDCeVFsRhX0hvuklI);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.3;
}

.map-grid-bg {
    background-size: 40px 40px;
    background-image: radial-gradient(circle, #BEBFB4 1px, transparent 1px);
    opacity: 0.3;
}

/* Animations */
.node-connector {
    stroke-dasharray: 10;
    animation: dash 30s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: 1000;
    }
}

/* Masonry Grid (for Case Studies) */
.masonry-grid {
    column-count: 1;
    column-gap: 2rem;
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 3;
    }
}

.break-inside-avoid {
    break-inside: avoid;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: #0a0a0a;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    position: relative;
    top: auto;
    right: auto;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ffffff;
    z-index: 10;
}

.mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
}

.mobile-nav {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav a {
    display: block;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    border-radius: 0.5rem;
    transition: background 0.2s;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Responsive Typography */
h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
}

body {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
}

/* Touch-Friendly Elements */
button,
a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Spacing */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Interactive Process Visualization */
.process-visualization {
    position: relative;
    padding: 6rem 0;
}

.progress-bar {
    display: none;
}

.progress-bar-fill {
    display: none;
}

.process-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 6rem;
    opacity: 0.5;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Connecting line between steps - subtle and modern */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    top: calc(50% + 2.5rem);
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 3rem);
    background: linear-gradient(to bottom,
            rgba(34, 69, 115, 0.3) 0%,
            rgba(34, 69, 115, 0.1) 50%,
            rgba(34, 69, 115, 0.05) 100%);
    border-radius: 2px;
    z-index: 0;
}

.process-step:first-child {
    opacity: 1;
    transform: translateY(0);
}

.process-step:first-child .step-number {
    background: linear-gradient(135deg, #224573 0%, #2d5a8e 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(34, 69, 115, 0.1), 0 8px 30px rgba(34, 69, 115, 0.25);
}

.process-step:first-child .step-details {
    border-color: rgba(34, 69, 115, 0.2);
    box-shadow: 0 8px 32px rgba(34, 69, 115, 0.08);
}

.process-step.active {
    opacity: 1;
    transform: translateY(0);
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step:nth-child(odd) .step-content {
    grid-column: 1;
    text-align: right;
}

.process-step:nth-child(odd) .step-details {
    grid-column: 3;
}

.process-step:nth-child(even) .step-content {
    grid-column: 3;
    text-align: left;
}

.process-step:nth-child(even) .step-details {
    grid-column: 1;
}

.step-number {
    grid-column: 2;
    position: relative;
    z-index: 10;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: white;
    border: 3px solid #224573;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #224573;
    box-shadow: 0 4px 20px rgba(34, 69, 115, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step.active .step-number {
    background: linear-gradient(135deg, #224573 0%, #2d5a8e 100%);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(34, 69, 115, 0.1), 0 8px 24px rgba(34, 69, 115, 0.2);
}

.step-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #121417;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.step-details {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.5s ease;
}

.process-step.active .step-details {
    border-color: #224573;
    box-shadow: 0 10px 40px rgba(34, 69, 115, 0.1);
}

.step-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-details li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #4b5563;
}

.step-details li:last-child {
    margin-bottom: 0;
}

.step-details .material-symbols-outlined {
    color: #10b981;
    font-size: 1.25rem;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .process-step {
        grid-template-columns: auto 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
        opacity: 0.5;
        transform: translateY(30px);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .process-step:first-child,
    .process-step.active {
        opacity: 1;
        transform: translateY(0);
    }

    .process-step:nth-child(odd) .step-content,
    .process-step:nth-child(even) .step-content {
        grid-column: 2;
        text-align: left;
    }

    .process-step:nth-child(odd) .step-details,
    .process-step:nth-child(even) .step-details {
        grid-column: 1 / -1;
    }

    .step-number {
        grid-column: 1;
        grid-row: 1;
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .progress-bar {
        display: none;
    }

    /* Hide connecting lines on mobile */
    .process-step::after {
        display: none;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation classes */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Dark mode adjustments */
.dark .step-number {
    background: #1e293b;
    border-color: #38bdf8;
    color: #38bdf8;
}

.dark .process-step.active .step-number,
.dark .process-step:first-child .step-number {
    background: linear-gradient(135deg, #224573 0%, #2d5a8e 100%);
    border-color: transparent;
    color: white;
}

.dark .step-details {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

.dark .step-content h3 {
    color: white;
}

.dark .process-step:not(:last-child)::after {
    background: linear-gradient(to bottom,
            rgba(56, 189, 248, 0.3) 0%,
            rgba(56, 189, 248, 0.1) 50%,
            rgba(56, 189, 248, 0.05) 100%);
}

/* ================================================
   CREATIVE DESIGN COMPONENTS
   ================================================ */

/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #224573 0%, #38bdf8 100%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    bottom: 20%;
    left: -80px;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    top: 40%;
    right: 10%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    bottom: 10%;
    right: 20%;
    animation-delay: -15s;
}

.shape-5 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    top: 60%;
    left: 15%;
    animation-delay: -7s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-20px) rotate(5deg) scale(1.05);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg) scale(0.95);
    }

    75% {
        transform: translateY(-25px) rotate(3deg) scale(1.02);
    }
}

/* Trust Badges */
.trust-badges {
    padding: 1.5rem 0;
    background: linear-gradient(90deg, rgba(34, 69, 115, 0.03) 0%, rgba(34, 69, 115, 0.08) 50%, rgba(34, 69, 115, 0.03) 100%);
    border-top: 1px solid rgba(34, 69, 115, 0.1);
    border-bottom: 1px solid rgba(34, 69, 115, 0.1);
    overflow: hidden;
}

.trust-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 1rem;
}

.badges-track {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.badges-slide {
    display: flex;
    gap: 3rem;
    animation: scroll-badges 25s linear infinite;
    width: max-content;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(34, 69, 115, 0.1);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 69, 115, 0.1);
}

.badge-item .material-symbols-outlined {
    color: #224573;
    font-size: 1.25rem;
}

.badge-item span:last-child {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

@keyframes scroll-badges {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Stats Counter */
.stats-counter {
    position: relative;
}

.stat-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Divider */
.section-divider {
    position: relative;
    height: 60px;
    overflow: hidden;
}

.section-divider.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    color: white;
}

.dark .section-divider.wave-divider svg {
    color: #1a1a1a;
}

.section-divider.wave-to-dark svg {
    color: #f2f2f2;
}

/* Accent Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #224573 0%, #38bdf8 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Effect */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #224573, #38bdf8, #10b981, #224573);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.glow-effect:hover::before {
    opacity: 0.6;
}

/* Pulse Ring Animation */
.pulse-ring {
    position: relative;
}

.pulse-ring::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #224573;
    border-radius: inherit;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(34, 69, 115, 0.15);
}

/* Accent Colors */
.accent-emerald {
    color: #10b981;
}

.accent-amber {
    color: #f59e0b;
}

.accent-violet {
    color: #8b5cf6;
}

.accent-rose {
    color: #ec4899;
}

.accent-cyan {
    color: #06b6d4;
}

.bg-accent-emerald {
    background-color: rgba(16, 185, 129, 0.1);
}

.bg-accent-amber {
    background-color: rgba(245, 158, 11, 0.1);
}

.bg-accent-violet {
    background-color: rgba(139, 92, 246, 0.1);
}

.bg-accent-rose {
    background-color: rgba(236, 72, 153, 0.1);
}

.bg-accent-cyan {
    background-color: rgba(6, 182, 212, 0.1);
}

/* Dark mode for trust badges */
.dark .trust-badges {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.03) 0%, rgba(56, 189, 248, 0.08) 50%, rgba(56, 189, 248, 0.03) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .badge-item {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .badge-item .material-symbols-outlined {
    color: #38bdf8;
}

.dark .badge-item span:last-child {
    color: #e5e7eb;
}

/* 3D Flip Card Styles */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

/* Click-based flip interaction (removed hover to prevent sticking) */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}



.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0.5rem;
    overflow: hidden;
    /* Ensure stacking context */
    top: 0;
    left: 0;
}

.flip-card-front {
    background-color: #0a0a0a;
    color: white;
    z-index: 2;
}

.flip-card-back {
    background-color: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotateY(180deg);
    padding: 1.5rem;
    overflow-y: auto;
    font-size: 0.75rem;
    line-height: 1.4;
    z-index: 1;
}

/* Scrollbar for back content */
.flip-card-back::-webkit-scrollbar {
    width: 4px;
}

.flip-card-back::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.flip-card-back::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

/* Responsive Utilities for Dynamic Content (Tailwind fallback) */
.desktop-only {
    display: none !important;
}

.mobile-only {
    display: flex !important;
}

@media (min-width: 768px) {
    .desktop-only {
        display: flex !important;
    }

    .mobile-only {
        display: none !important;
    }
}

.push-right {
    margin-left: auto;
}

/* Fix for mobile navbar booking button - consistent styling across all pages */
.mobile-only a[href="/kontakt.html"] {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-color: transparent !important;
    text-decoration: none !important;
    padding: 6px 10px !important;
    border-radius: 9999px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
    white-space: nowrap !important;
    display: flex !important;
    /* Changed from inline-block to flex for better centering */
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    /* Reset line-height for flex centering */
    height: 28px !important;
    /* Explicit height to match hamburger button visual weight */
    margin-top: 1px !important;
    /* Micro-adjustment for optical alignment with hamburger */
}

.mobile-only a[href="/kontakt.html"]:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Prevent navbar jump/move by reserving space */
#navbar-placeholder {
    min-height: 64px;
    /* Mobile height */
    display: contents !important;
    /* Make it transparent to layout - header becomes direct child of body */
    width: 100%;
}

@media (min-width: 1024px) {
    #navbar-placeholder {
        min-height: 80px;
        /* PC/Desktop height */
    }
}