@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&display=swap');

/* Top Bar - Fixed at top */
.top-bar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
}

/* News Ticker Styles */
.news-ticker-container {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.news-ticker {
    display: inline-flex;
    animation: scroll-news 40s linear infinite;
    will-change: transform;
}

@keyframes scroll-news {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Package Cards Styles */
.package-card {
    position: relative;
    overflow: visible;
}

.package-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0057B8, #A3E635, #4DA3FF);
    opacity: 0;
    transition: opacity 0.3s;
}

.package-card:hover::before {
    opacity: 0;
}

.package-card:hover {
    border-color: inherit;
}

/* Dev Credit Styles */
.dev-credit {
    position: relative;
    display: inline-block;
}

.dev-credit::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0057B8, transparent);
    transition: width 0.3s ease;
}

.dev-credit:hover::after {
    width: 100%;
}

:root {
    --primary: #0057B8;
    --primary-light: #4DA3FF;
    --dark: #1F1F1F;
    --dark-gray: #1F1F1F;
    --light-gray: #F3F4F6;
    --light-gray-alt: #C7CEDB;
    --white: #FFFFFF;
    --secondary: #4DA3FF;
    --light: #F3F4F6;
}

/* Base body styles - minimal to not interfere with Tailwind */
body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

.water-effect {
    position: relative;
    overflow: hidden;
}

.water-effect::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,87,184,0.1) 0%, rgba(77,163,255,0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0) 45%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0) 55%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
    z-index: 1;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

.water-droplet {
    position: absolute;
    background: rgba(0, 87, 184, 0.5);
    border-radius: 50%;
    filter: blur(5px);
    animation: fall linear infinite;
    z-index: 10;
}

@keyframes fall {
    0% { transform: translateY(-100px) scale(0.5); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(calc(100vh + 100px)) scale(1.2); opacity: 0; }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.car-animation {
    animation: carMove 8s ease-in-out infinite;
}

@keyframes carMove {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-10px) rotate(-1deg); }
    50% { transform: translateX(0) rotate(0deg); }
    75% { transform: translateX(10px) rotate(1deg); }
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-icon {
    transition: transform 0.6s ease;
}

/* Glassy effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-nav {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile optimizations - CRITICAL for phone-friendly design */
@media (max-width: 640px) {
    /* Reduce animation complexity on mobile for better performance */
    .water-droplet {
        display: none;
    }
    
    /* Ensure touch targets are large enough - CRITICAL for mobile */
    a, button, input[type="button"], input[type="submit"], .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Form inputs should be touch-friendly */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
        min-height: 44px;
    }
    
    /* Improve text readability on small screens */
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Better spacing on mobile */
    .container, .max-w-7xl, .max-w-6xl, .max-w-4xl, .max-w-2xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Cards should stack on mobile */
    .grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Modal should be full width on mobile */
    .modal, [id*="modal"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    /* Hide news ticker on very small screens */
    .news-ticker-container {
        display: none;
    }
    
    /* Better padding for sections */
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Images should be responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Videos should be responsive */
    video {
        max-width: 100%;
        height: auto;
    }
    
    /* Tables should scroll horizontally on mobile */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better spacing for text */
    p, li {
        margin-bottom: 1rem;
    }
    
    /* Headings should scale down */
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 1024px) {
    .water-droplet {
        display: block;
    }
    
    /* Touch targets still important on tablets */
    a, button, input[type="button"], input[type="submit"] {
        min-height: 44px;
        padding: 10px 20px;
    }
    
    /* Better grid layouts for tablets */
    .grid {
        gap: 1.5rem;
    }
}

/* Prevent horizontal scroll on mobile */
html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Anchor link offset for fixed header */
section[id],
[id] {
    scroll-margin-top: 7rem; /* Adjust based on header height */
}

@media (min-width: 768px) {
    section[id],
    [id] {
        scroll-margin-top: 8rem;
    }
}

/* Typewriter cursor blinking animation */
@keyframes cursor-blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.typewriter-cursor {
    animation: cursor-blink 1s infinite;
    display: inline-block;
    vertical-align: baseline;
    margin-left: 2px;
}

/* Typewriter text container for multi-line support */
.typewriter-container {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    text-align: center;
}

.typewriter-text {
    display: inline;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Parallax video styles */
.parallax-video {
    will-change: transform;
    transition: transform 0.1s ease-out, opacity 0.3s ease-out;
}

/* Logo styles - circular with transparent background */
img[src*="downloaded-image.png"],
img[alt*="cég név ide! Logo"] {
    border-radius: 50%;
    background: transparent;
    /* Remove any background from the image */
    background-color: transparent !important;
    /* Ensure the image fits perfectly in circle */
    object-fit: cover;
    /* Add subtle shadow for depth */
    box-shadow: 0 2px 8px rgba(0, 87, 184, 0.2);
    /* Remove black background if present - try different blend modes */
    mix-blend-mode: multiply;
    /* Alternative: use filter to remove dark backgrounds */
    filter: contrast(1.1) brightness(1.05);
}

/* For logos in dark backgrounds, use different blend mode */
.dark img[src*="downloaded-image.png"],
.glass-nav img[src*="downloaded-image.png"] {
    mix-blend-mode: screen;
    filter: contrast(1.2) brightness(1.1);
}

/* For logos in light backgrounds */
.bg-white img[src*="downloaded-image.png"],
.login-card img[src*="downloaded-image.png"],
.booking-card img[src*="downloaded-image.png"] {
    mix-blend-mode: multiply;
    filter: contrast(1.1);
}

