body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh; /* Fixed height for no scroll */
    text-align: center;
    overflow: hidden; /* No scrolling */
}

#background-video {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    filter: blur(2px);
    z-index: -1;
}

.content {
    position: relative;
    z-index: 1;
    width: 100%;
    /* padding: 20px;  Removed to allow full-screen hero */
    box-sizing: border-box;
    /* Flex layout to fill available space */
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

.brand-subtitle {
    margin-top: 15px;
    font-size: 0.95rem; /* Reduced from 1.2rem */
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.hero {
    width: 100%;
    /* height: 100vh; Removed to allow footer space */
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center content horizontally */
    position: relative;
    min-height: 0; /* Important for flex child scrolling handling if needed */
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.text-carousel {
    position: relative;
    min-height: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.carousel-text {
    position: absolute;
    width: 100%;
    transition: opacity 1s ease-in-out;
    font-size: 1.5rem;
    color: #fff;
    top: 0;
    left: 0;
    white-space: nowrap; /* Prevent line breaks */
    text-align: center;
}

.carousel-text.active {
    opacity: 1;
}

#typewriter {
    font-family: "Courier New", Courier, monospace; /* Klasszikus gépíró betűtípus */
    font-size: 24px;
    font-weight: bold;
    color: white; /* Ha sötét háttéren van */
}

footer {
    position: relative;
    /* margin-top: auto; - Removed */
    width: 100%;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 0.9rem;
    z-index: 10;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: #fff;
    text-decoration: none;
    gap: 6px;
}

.footer-item:hover {
    text-decoration: none;
}

.footer-item:hover .link-text {
    text-decoration: underline;
}

.footer-item.copyright:hover {
    text-decoration: none;
    cursor: default;
}

.separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8em;
}

footer .fa-linkedin {
    color: #0077b5;
    /* margin-right: 5px; Removed to fix double spacing with gap */
}

footer .fa-whatsapp {
    color: #25D366;
    /* margin-right: 5px; Removed to fix double spacing with gap */
}

.text-blue { color: #3498db; }  /* Kék */
.text-orange { color: #e67e22; }  /* Narancssárga */
.text-green { color: #2ecc71; }  /* Zöld */

.logo {
    height: 20px; 
    vertical-align: middle;
    margin-left: 5px;
    position: relative;
    top: -2px; /* Minor adjustment upward */
}

#cursor {
    font-weight: bold;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Language Switcher --- */
.language-switcher {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 100;
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.language-switcher button {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.language-switcher button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.language-switcher button.active {
    background: #3498db; /* Active selection */
    color: #fff;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.4);
}

/* --- Language Visibility Logic --- */
html[data-lang="hu"] .lang-en { display: none !important; }
html[data-lang="en"] .lang-hu { display: none !important; }

/* --- Services Overlay (Modal) --- */
.services-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85); /* Slightly transparent, dark blueish tint */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    z-index: 200;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 80px 20px 100px 20px; /* Increased bottom padding */
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.services-overlay.active {
    display: flex;
    opacity: 1;
}

/* Service Trigger Button */
.btn-services {
    margin-top: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-services:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 
                0 0 20px rgba(255, 255, 255, 0.2); /* Glow effect */
}

.btn-services:hover::before {
    left: 100%;
}

.btn-services:active {
    transform: translateY(-2px) scale(0.98);
}

/* Close Button - Moved to Left */
.close-btn {
    position: absolute;
    top: 30px;
    left: 30px; /* Moved to left side */
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 210;
    line-height: 1;
}

.close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.close-bottom-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.btn-close-bottom {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-close-bottom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.services-content {
    max-width: 900px;
    width: 100%;
    text-align: left;
}

.services-content h2 {
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    width: 100%;
}

.services-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3498db;
}

.service-item {
    margin-bottom: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Thin glass border */
    border-left: 4px solid #3498db;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex; /* Layout for icon + text */
    align-items: flex-start;
    gap: 20px;
}

/* Service Icon Styles */
.service-icon {
    font-size: 2rem;
    color: #3498db;
    min-width: 50px; /* Fixed width for alignment */
    text-align: center;
    transition: color 0.3s, transform 0.3s;
    margin-top: 5px; /* Slight optical adjustment */
}

.service-item:hover .service-icon {
    color: #2ecc71;
    transform: scale(1.1);
}

.service-item > div {
    flex: 1; /* Content takes remaining space */
}

/* Subtle gradient overlay on hover */
.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-item:hover {
    transform: translateY(-3px) scale(1.01);
    background: rgba(255, 255, 255, 0.07);
    border-left-color: #2ecc71; /* Green accent on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

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

.service-item h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.service-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 600px) {
    .carousel-text {
        font-size: 1rem; /* Smaller font on mobile to prevent overflow */
        white-space: normal; /* Allow text to wrap */
        padding: 0 15px;
        line-height: 1.4;
    }
    
    .text-carousel {
        min-height: 80px; /* Adjust height for wrapped text */
    }

    h1 {
        font-size: 2rem;
    }

    .btn-services {
        font-size: 0.9rem;
        padding: 10px 20px;
        margin-top: 25px; /* Reduced vertical space on mobile */
    }

    footer p {
        flex-wrap: wrap; /* Allow items to wrap */
        line-height: 2; /* More space between lines */
        padding: 0 10px;
    }
}

/* Contact Trigger Bubble */
.contact-container {
    position: fixed;
    bottom: 90px;
    right: 30px; /* Moved to bottom right corner */
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 100;
    width: 50px; /* Initial width - icon only */
    height: 50px;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box; /* Important for width calculation */
}

/* Icon Wrapper */
.contact-icon-wrapper {
    flex-shrink: 0;
    width: 30px; /* Fits inside 50px padding (10+30+10) */
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #3498db;
    animation: pulse 2s infinite;
}

/* Hidden Text */
.contact-text {
    opacity: 0;
    margin-left: 15px;
    font-weight: 700;
    font-size: 0.95rem;
    transform: translateX(20px);
    transition: all 0.3s ease;
    white-space: nowrap;
    pointer-events: none; /* Initially not clickable */
}

/* Hover Interaction: Expand */
.contact-container:hover {
    background: #fff;
    padding-right: 25px;
}

/* Width for Hungarian (Longer text) */
html[data-lang="hu"] .contact-container:hover {
    width: 420px;
}

/* Width for English (Shorter text) */
html[data-lang="en"] .contact-container:hover {
    width: 330px; 
}

.contact-container:hover .contact-icon-wrapper {
    animation: none; /* Stop pulsing on hover */
    transform: rotate(360deg);
    transition: transform 0.5s;
    color: #2ecc71;
}

.contact-container:hover .contact-text {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); border-radius: 50%; }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); border-radius: 50%; }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); border-radius: 50%; }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: row; /* Keep horizontal */
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: center;
        align-items: center; /* Ensure vertical alignment */
        gap: 15px; /* Increase gap since separators are hidden */
        padding-bottom: 20px;
    }

    .mobile-hidden {
        display: none; /* Hide text for LinkedIn, WhatsApp, Email of mobile */
    }

    .footer-item i {
        font-size: 1.3rem; /* Make icons slightly larger */
    }

    .separator {
        display: none; /* Hide most pipes on mobile */
    }

    .separator.first-separator {
        display: inline; /* Show only the first separator after logo */
        margin: 0 5px;
    }
    
    .footer-item {
        font-size: 0.9rem;
        margin: 5px 0;
    }

    /* Embossed effect and gray color for copyright on mobile */
    .footer-item.copyright {
        text-shadow: 1px 1px 2px rgba(0,0,0,0.8), -1px -1px 0 rgba(255,255,255,0.2);
        font-weight: bold;
        color: rgba(255, 255, 255, 0.5); /* Grayish color */
    }

    .contact-container {
        bottom: 80px;
        right: 20px; /* Moves it slightly closer to edge on mobile */
    }

    /* Contact text adjustments for mobile */
    .contact-text {
        font-size: 0.85rem;
    }

    /* Dynamic width for contact bubble on mobile to fit screen */
    /* Use calc to ensure it barely fits within screen width minus margins */
    
    html[data-lang="hu"] .contact-container:hover {
        /* "Keressen bizalommal a lenti elérhetőségeken!" - give it ample space */
        width: 380px; 
    }
    
    html[data-lang="en"] .contact-container:hover {
        width: 300px; 
    }
    
    /* Ensure it doesn't overflow screen width regardless of language setting */
    .contact-container:hover {
        max-width: calc(100vw - 40px);
    }
}



