/* AUTO-GENERATED concatenation of atomic CSS (see main.css import order). Do not edit directly. */

/* ===== atoms/variables.css ===== */
/* ============================================
   ATOMS - Variables (CSS Custom Properties)
   ============================================ */

:root {
    /* Colors */
    --bg-dark: #1a1a1a;
    --bg-card: #242424;
    --primary: #32b38d;
    --primary-dark: #2a9975;
    --secondary: #4a9eff;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    
    /* Gradients */
    --gradient: linear-gradient(135deg, #32b38d 0%, #4a9eff 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 15px;
    --radius-full: 50px;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(50, 179, 141, 0.3);
    --shadow-lg: 0 10px 40px rgba(50, 179, 141, 0.3);
    --shadow-header: 0 2px 20px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.4s;
    
    /* Z-index layers */
    --z-header: 1000;
    --z-sticky: 999;
    --z-modal: 2000;
    
    /* Header heights */
    --header-height: 60px;
    --nav-height: 50px;
    
    /* Container - SINGLE SOURCE OF TRUTH for the content band.
       Every band-forming element (top-nav, section-nav, sections, portfolio grids,
       logo & language-switcher edges) aligns to this width + inline gutter.
       See .devin/rules/knowledge_graph_workflow.md (D section). */
    --container-max-width: 1400px;
    /* Dynamic side gutter: scales smoothly from mobile to large screens. */
    --content-inline: clamp(var(--spacing-sm), 4vw, var(--spacing-xl));
    /* THE alignment edge. Every band element (logo, language switcher, top-nav,
       overflow section-nav, sections, .container, footer) uses exactly this width
       + margin-inline:auto and NO extra inset, so they all line up on the same
       left/right edge as the overflow menu. On wide screens it equals
       --container-max-width (reaching the menu edge); on narrow screens it shrinks
       leaving --content-inline as a gutter on each side. */
    --content-width: min(100% - 2 * var(--content-inline), var(--container-max-width));
    
    /* Font sizes */
    --font-size-sm: 0.9rem;
    --font-weight-medium: 500;
    
    /* Transitions */
    --transition-base: 0.3s ease;
}


/* ===== atoms/reset.css ===== */
/* ============================================
   ATOMS - Reset & Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

/* CRITICAL: Prevent flash of wrong language - hide content until language is loaded */
/* This class is added by JavaScript immediately on page load */
body.lang-loading {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.1s ease-in, visibility 0.1s ease-in;
}

body.lang-loaded {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.2s ease-in, visibility 0.2s ease-in;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

/* Prevent flash of wrong language - hide content until language is loaded */
body.lang-loading {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease-in, visibility 0.2s ease-in;
}

body.lang-loaded {
    visibility: visible;
    opacity: 1;
}


/* ===== atoms/typography.css ===== */
/* ============================================
   ATOMS - Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-sm) / 2);
}

@media (max-width: 768px) {
    .section-title,
    .section-title-spacing,
    .page-title,
    .privacy-section-title {
        font-size: 80%;
    }
}

h1 {
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw + 1rem, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw + 0.5rem, 1.5rem);
}

p {
    margin-bottom: calc(var(--spacing-sm) / 2);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 5vw + 1rem, 2.5rem);
    margin-bottom: calc(var(--spacing-xl) / 2);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: var(--spacing-sm) auto 0 auto !important;
    border-radius: 2px;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}


/* ===== atoms/buttons.css ===== */
/* ============================================
   ATOMS - Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-light);
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-gray);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.lang-btn.active {
    background: var(--primary);
    color: var(--text-light);
}

.lang-btn:hover {
    border-color: var(--primary-dark);
}

/* Mobile responsive buttons */
@media (max-width: 768px) {
    .btn {
        padding: clamp(0.75rem, 2vw, var(--spacing-sm)) clamp(1.5rem, 5vw, 2.5rem);
        font-size: clamp(0.85rem, 2.5vw, 1rem);
    }
    
    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }
}


/* ===== atoms/icons.css ===== */
/* ============================================
   ATOMS - Icons
   ============================================ */

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-xs);
    display: inline-block;
}


/* ===== atoms/media-loader.css ===== */
.media-loader-container {
    position: relative;
    display: block;
}

.media-loader-container > img,
.media-loader-container > picture {
    display: block;
    width: 100%;
    height: auto;
}

.media-loader-container > video,
.media-loader-container > iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.media-loader-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    pointer-events: none;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

.media-loader-overlay.is-hidden {
    opacity: 0;
}

.media-loader-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(50, 179, 141, 0.95);
    border-right-color: rgba(74, 158, 255, 0.85);
    animation: mediaLoaderSpin 0.85s linear infinite;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

 .yt-click-to-load {
     width: 100%;
     height: 100%;
     display: flex;
     align-items: center;
     justify-content: center;
     background: rgba(26, 26, 26, 0.55);
 }

 .yt-click-to-load-button {
     position: relative;
     width: 100%;
     height: 100%;
     display: block;
     padding: 0;
     border: 0;
     border-radius: var(--radius-md);
     background: rgba(0, 0, 0, 0.25);
     cursor: pointer;
     overflow: hidden;
     transition: transform var(--transition-fast), background var(--transition-fast);
 }

 .yt-click-to-load-button:hover {
     background: rgba(0, 0, 0, 0.35);
     transform: translateY(-1px);
 }

 .yt-click-to-load-thumb {
     display: block;
     width: 100%;
     height: 100%;
     object-fit: cover;
     filter: saturate(1.05) contrast(1.05) brightness(0.92);
 }

 .yt-click-to-load-button::after {
     content: '';
     position: absolute;
     inset: 0;
     background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.45));
     pointer-events: none;
 }

 .yt-click-to-load-play {
     position: absolute;
     left: 50%;
     top: 50%;
     transform: translate(-50%, -50%);
     width: 76px;
     height: 54px;
     border-radius: 14px;
     background: rgba(0, 0, 0, 0.55);
     border: 1px solid rgba(255,255,255,0.22);
     box-shadow: 0 10px 24px rgba(0,0,0,0.35);
     pointer-events: none;
 }

 .yt-click-to-load-play::before {
     content: '';
     position: absolute;
     left: 52%;
     top: 50%;
     transform: translate(-50%, -50%);
     width: 0;
     height: 0;
     border-top: 12px solid transparent;
     border-bottom: 12px solid transparent;
     border-left: 18px solid rgba(255,255,255,0.92);
 }

 .yt-click-to-load-label {
     position: absolute;
     left: 50%;
     bottom: 10px;
     transform: translateX(-50%);
     padding: 0.35rem 0.6rem;
     border-radius: 999px;
     background: rgba(0,0,0,0.55);
     border: 1px solid rgba(255,255,255,0.18);
     color: var(--text-light);
     font-size: 0.9rem;
     font-weight: 600;
     pointer-events: none;
     white-space: nowrap;
 }

 @media (min-width: 769px) {
     .yt-click-to-load-label {
         display: none;
     }
 }

 .media-fallback {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
     padding: 0.75rem;
     text-align: center;
     color: var(--text-gray);
     font-size: clamp(0.85rem, 2vw, 1rem);
 }

 .media-fallback-message {
     font-weight: 600;
     font-size: 1em;
 }

 .media-fallback-link {
     color: var(--primary);
     text-decoration: underline;
     font-size: 0.95em;
 }

@keyframes mediaLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== atoms/mobile-ui-scale.css ===== */
@media (max-width: 768px) {
    html {
        font-size: 100% !important;
        -webkit-text-size-adjust: none !important;
        text-size-adjust: none !important;
    }
}

/* ===== molecules/cards.css ===== */
/* ============================================
   MOLECULES - Cards
   ============================================ */

.service-card {
    background: var(--bg-card);
    padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    margin: 0 0 var(--spacing-xs);
    color: var(--primary);
}

/* Button pinned to bottom of card */
.service-card .btn {
    margin-top: auto;
}

/* ============================================
   Contact Tabs
   ============================================ */

.contact-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.contact-tab-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-gray);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.contact-tab-btn:first-child {
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    border-right: none;
}

.contact-tab-btn:last-child {
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.contact-tab-btn.active {
    background: var(--primary);
    color: var(--text-light);
}

.contact-tab-btn:hover:not(.active) {
    background: rgba(50, 179, 141, 0.1);
    color: var(--primary);
}

.contact-tab-panel {
    display: none;
}

.contact-tab-panel.active {
    display: block;
}

.booking-container {
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.booking-container iframe {
    width: 100%;
    min-height: 700px;
    border: none;
    border-radius: var(--radius-lg);
}


/* ===== molecules/nav-items.css ===== */
/* ============================================
   MOLECULES - Navigation Items
   ============================================ */

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-normal);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    display: block;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(50, 179, 141, 0.1);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: var(--transition-normal);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
    margin-left: auto;
}

.lang-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-btn:hover {
    background: var(--primary);
    color: var(--text-dark);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: var(--spacing-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .mobile-menu {
        display: flex;
    }
}


/* ===== organisms/header.css ===== */
/* ============================================
   ORGANISMS - Header & Two-Tier Navigation
   ============================================ */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: rgba(26, 26, 26, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Simple navigation (portfolio page, old style) */
/* Legacy simple nav only — must NOT match the full-width sticky .section-nav,
   otherwise the section-nav gets constrained and its inner container double-insets. */
header nav:not(.top-nav):not(.section-nav) {
    width: var(--content-width);
    max-width: none;
    margin: 0 auto;
    padding: 1.2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Top Navigation (Category tier) */
.top-nav {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: var(--content-width);
    max-width: none;
    margin: 0 auto;
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    position: absolute;
    left: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    aspect-ratio: 1 / 1;
}

.top-nav-links {
    display: flex;
    list-style: none;
    gap: var(--menu-gap, var(--spacing-lg));
    align-items: center;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex: 1;
}

.top-nav-item {
    position: relative;
}

.top-nav-item > a {
    color: var(--text-gray);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: block;
}

.top-nav-item > a:hover {
    color: var(--primary);
    background: rgba(50, 179, 141, 0.1);
}

/* Active state for top navigation */
.top-nav-item > a.active,
.top-nav-item.has-dropdown > a.active {
    color: var(--primary);
    background: rgba(50, 179, 141, 0.2);
    font-weight: 600;
}

.dropdown-menu a.active {
    color: var(--primary);
    background: rgba(50, 179, 141, 0.2);
    font-weight: 600;
}

/* DO NOT keep dropdown open - only highlight active link, dropdown stays closed */
/* Removed: .top-nav-item.has-dropdown.active .dropdown-menu - dropdown should not auto-open */

.top-nav-item.has-dropdown > a::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform var(--transition-fast);
}

.top-nav-item.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    /* Size to the widest item so labels never wrap mid-word. */
    min-width: max-content;
    width: max-content;
    max-width: 380px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    margin-top: var(--spacing-xs);
}

.top-nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-gray);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    color: var(--primary);
    background: rgba(50, 179, 141, 0.1);
}

/* Submenu support */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 0.9em;
    opacity: 0.7;
}

.dropdown-submenu-content {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xs);
    display: none;
    z-index: 1001;
}

.dropdown-submenu:hover .dropdown-submenu-content {
    display: block;
}

.dropdown-submenu-content a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.dropdown-submenu-content a:hover {
    background: var(--primary);
    color: var(--text-light);
}

/* Bottom Navigation (Section tier) - Sticky with Overflow Menu */
.section-nav {
    height: 45px;
    background: rgba(36, 36, 36, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: sticky;
    top: 60px;
    z-index: 999;
    overflow: hidden;
}

.section-nav-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the container content */
    width: var(--content-width);
    max-width: none;
    margin: 0 auto; /* Center the container itself */
    position: relative;
    gap: var(--spacing-sm);
    min-width: 0; /* Allow flex item to shrink */
}

.section-nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-content: flex-start; /* Always start from left to allow scrolling */
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    min-width: 0; /* Allow flex item to shrink and enable scrolling */
    max-width: 100%; /* Prevent overflow */
}

.section-nav-links::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Enable horizontal scrolling with mouse wheel and drag */
.section-nav-links {
    cursor: grab;
}

.section-nav-links:active {
    cursor: grabbing;
}

.section-nav-links a {
    color: var(--text-gray);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.section-nav-links a:hover {
    color: var(--primary);
    background: rgba(50, 179, 141, 0.15);
}

.section-nav-links a.active {
    color: var(--primary);
    background: rgba(50, 179, 141, 0.2);
    font-weight: 600;
}

/* Overflow Menu Buttons */
.overflow-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(50, 179, 141, 0.1);
    border: 1px solid rgba(50, 179, 141, 0.3);
    border-radius: var(--radius-sm);
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.overflow-menu-btn:hover {
    background: rgba(50, 179, 141, 0.2);
    border-color: var(--primary);
}

.overflow-menu-btn.active {
    background: rgba(50, 179, 141, 0.25);
    border-color: var(--primary);
}

.overflow-menu-btn::before {
    content: none !important;
}

.overflow-menu-btn-left {
    display: none;
}

.overflow-menu-btn-right {
    display: none;
}

.overflow-menu-btn.visible,
.overflow-menu-btn-left.visible,
.overflow-menu-btn-right.visible {
    display: flex !important;
}

/* Overflow Dropdown Menu */
.overflow-menu-dropdown {
    position: absolute;
    top: calc(100% + var(--spacing-xs));
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    max-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1001;
    padding: var(--spacing-xs) 0;
    margin-top: 0;
    display: block;
}

.overflow-menu-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
    pointer-events: auto !important;
}

.overflow-menu-dropdown-left {
    left: 0;
}

.overflow-menu-dropdown-right {
    right: 0;
}

.overflow-menu-dropdown a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-gray);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.overflow-menu-dropdown a:hover {
    color: var(--primary);
    background: rgba(50, 179, 141, 0.15);
}

.overflow-menu-dropdown a.active {
    color: var(--primary);
    background: rgba(50, 179, 141, 0.2);
    font-weight: 600;
}

/* Scroll indicator when menu is scrollable */
.section-nav.scrolled .section-nav-links {
    transform: translateX(0);
}

/* Smooth scrolling for section nav */
.section-nav-links {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}


/* Language switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: var(--spacing-lg);
    position: absolute;
    right: 0;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 0;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all var(--transition-normal);
}

/* Mobile menu container */
.mobile-nav-container {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: var(--z-header);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
}

.mobile-nav-container.active {
    display: block;
}

.mobile-nav-container .top-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md) 0;
}

.mobile-nav-container .top-nav-item {
    width: 100%;
}

.mobile-nav-container .top-nav-item > a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-gray);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.mobile-nav-container .top-nav-item > a:hover {
    background: rgba(50, 179, 141, 0.1);
    color: var(--primary);
}

.mobile-nav-container .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding-left: var(--spacing-md);
    margin-top: var(--spacing-xs);
}

.mobile-nav-container .section-nav {
    display: block;
    position: static;
    height: auto;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
}

.mobile-nav-container .section-nav-links {
    flex-direction: column;
    gap: var(--spacing-xs);
}

.mobile-nav-container .section-nav-links a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
}

/* ============================================
   MODE 2 (MOBILE) - Kétszintű menü rendszer
   Mobilon: hamburger + logó + section nav (túlcsorduló menü)
   ============================================ */

/* Mode 2 Aktiváció Feltétele: body.menu-mode-2 */
body.menu-mode-2.menu-mode-2-has-sectionnav header .top-nav {
    display: none;
}

/* Mode 2 fallback: ha NINCS section-nav (pl. /faq, /contact), a top-nav maradjon látható */
body.menu-mode-2:not(.menu-mode-2-has-sectionnav) header .top-nav {
    display: flex !important;
}

/* Mode 2 - Hamburger gomb a section nav-hoz kerül */
body.menu-mode-2 .section-nav {
    padding-right: 0;
}

body.menu-mode-2.menu-mode-2-has-sectionnav .section-nav-container {
    justify-content: space-between;
}

body.menu-mode-2 .hamburger-btn {
    display: flex !important;
    position: relative;
    z-index: 1001;
}

body.menu-mode-2.menu-mode-2-has-sectionnav .logo-link-mobile {
    display: block !important;
    position: static;
    right: auto;
    top: auto;
    transform: none;
    z-index: 1001;
    height: 45px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

body.menu-mode-2 .logo-link-mobile img {
    height: 35px;
    width: auto;
}

/* Mode 2 - Hamburger gomb stílusok */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    transition: all var(--transition-normal);
    align-items: center;
    justify-content: center;
}

.hamburger-btn span {
    width: 24px;
    height: 3px;
    background: var(--primary);
    transition: all var(--transition-normal);
    display: block;
}

/* Hamburger animáció - nyitva */
body.mobile-menu-open .hamburger-btn span:nth-child(1) {
    transform: rotate(45deg) translate(11px, 11px);
}

body.mobile-menu-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
}

body.mobile-menu-open .hamburger-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mode 2 - Logo elrejtés (Mode 1-ben marad) */
body.menu-mode-2 .top-nav .logo-link {
    display: none !important;
}

body.menu-mode-2 .top-nav .language-switcher {
    display: none !important;
}

/* Mode 2 - Mobile menü overlay (full-screen) */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 26, 26, 0.98);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .mobile-menu-overlay {
    display: block;
    opacity: 1;
    visibility: visible;
    /* Must sit ABOVE the cookie banner (z-index 2147482000) so the banner does not
       peek over the top of the open menu. Still BELOW the page-transition overlay
       (2147483000) so navigation animations cover it. */
    z-index: 2147482500;
}

/* Mode 2 - Overlay header (logó + BMSoft1024 felirat) */
.mobile-menu-overlay-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10001;
}

.mobile-menu-overlay-header img {
    height: 50px;
    width: auto;
}

.mobile-menu-overlay-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
    padding: 0;
}

/* Mode 2 - Overlay tartalom (navigáció) */
.mobile-menu-overlay-content {
    padding: var(--spacing-xl);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    position: relative;
    z-index: 10001;
}

.mobile-menu-overlay-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-overlay-content li {
    margin: 0;
    padding: 0;
}

.mobile-menu-overlay-content a {
    display: block;
    padding: 0;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-overlay-content a:hover {
    color: var(--primary);
    padding-left: var(--spacing-md);
}

.mobile-menu-overlay-content a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Mode 2 - Overlay bezárás gomb (hamburger mellett, ha kell) */
.mobile-menu-overlay-close {
    display: none;
    position: fixed;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10002;
    padding: 0.5rem;
}

body.mobile-menu-open .mobile-menu-overlay-close {
    display: flex;
}

.mobile-menu-overlay-close::before,
.mobile-menu-overlay-close::after {
    content: '';
    display: block;
    width: 24px;
    height: 3px;
    background: var(--primary);
    position: absolute;
}

.mobile-menu-overlay-close::before {
    transform: rotate(45deg);
}

.mobile-menu-overlay-close::after {
    transform: rotate(-45deg);
}

/* Mode 2 - Takarás: section nav elrejtése overlay alatt */
body.mobile-menu-open .section-nav {
    display: none !important;
}

/* Mode 2 - Overlay tartalmának stílusai */
.mobile-menu-overlay-content .overlay-top-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0;
}

.mobile-menu-overlay-content .overlay-top-nav-links .top-nav-item {
    margin: 0;
    padding: 0;
}

.mobile-menu-overlay-content .overlay-top-nav-links a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-md);
    color: var(--text-gray);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.mobile-menu-overlay-content .overlay-top-nav-links a:hover {
    color: var(--primary);
    background: rgba(50, 179, 141, 0.12);
}

.mobile-menu-overlay-content .overlay-top-nav-links a.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(50, 179, 141, 0.16);
}

/* Dropdown főcím (nem kattintható, csak cím) */
.mobile-menu-overlay-content .overlay-top-nav-links > li > a[style*="pointer-events: none"] {
    color: var(--secondary);
    font-weight: 600;
    background: transparent;
}

.mobile-menu-overlay-content .overlay-top-nav-links > li > a[style*="pointer-events: none"]:hover {
    color: var(--secondary);
    background: transparent;
}

/* Dropdown elemek nem kattinthatóak, csak címként */
.mobile-menu-overlay-content .overlay-top-nav-links .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding-left: var(--spacing-md);
    margin-top: 0;
}

.mobile-menu-overlay-content .overlay-top-nav-links .dropdown-menu a {
    padding: var(--spacing-xs) var(--spacing-md);
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: var(--radius-sm);
}

.mobile-menu-overlay-content .overlay-top-nav-links .dropdown-menu a:hover {
    color: var(--primary);
    background: rgba(50, 179, 141, 0.12);
}

.mobile-menu-overlay-content .overlay-top-nav-links .dropdown-menu a.active {
    color: var(--primary);
    font-weight: 500;
    background: rgba(50, 179, 141, 0.16);
}

/* Egységes vertikális ritmus: minden sor között ugyanannyi hely legyen */
.mobile-menu-overlay-content .overlay-top-nav-links > li > a,
.mobile-menu-overlay-content .overlay-top-nav-links .dropdown-menu a {
    padding-top: var(--spacing-xs);
    padding-bottom: var(--spacing-xs);
}

.mobile-menu-overlay-content .overlay-top-nav-links .dropdown-menu {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Nyelvválasztó blokk alul egységes térközzel */
.mobile-menu-overlay-content .overlay-language-switcher {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-sm);
}

.mobile-menu-overlay-content .overlay-language-switcher .language-switcher {
    position: static;
    right: auto;
    margin-left: 0;
}

/* Mode 2-ben a desktop top-nav nyelvválasztó ne látszódjon (a mobil overlay alján van a nyelvváltó) */
body.menu-mode-2 .top-nav .language-switcher {
    display: none !important;
}

/* Mode 2 - Overlay section nav linkek */
.mobile-menu-overlay-content .overlay-section-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-overlay-content .overlay-section-nav-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: var(--spacing-sm) 0;
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-overlay-content .overlay-section-nav-links a:hover {
    color: var(--primary);
    padding-left: var(--spacing-md);
}

.mobile-menu-overlay-content .overlay-section-nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   RESPONSIVE BREAKPOINTS - Desktop/Mobile
   ============================================ */

/* Intermediate: reduced padding before switching to mobile — gap is handled dynamically by JS */
@media (max-width: 1200px) and (min-width: 769px) {
    .top-nav-item > a {
        padding: var(--spacing-xs) 10px;
        font-size: 0.9rem;
    }
    .language-switcher {
        gap: 2px;
        margin-left: 4px;
    }
}

@media (max-width: 768px) {
    /* Desktop nav mindig rejtett mobil nézetben */
    .top-nav-links,
    .top-nav .logo-link,
    .top-nav .language-switcher {
        display: none !important;
    }

    .mobile-menu {
        display: flex;
    }
}

/* ===== organisms/sections.css ===== */
/* ============================================
   ORGANISMS - Sections
   ============================================ */

section {
    /* Same alignment edge as the overflow menu: width formula + auto margins,
       NO horizontal padding (the gutter is baked into --content-width). */
    width: var(--content-width);
    max-width: none;
    margin: 0 auto;
    padding: calc(var(--spacing-xxl) / 2) 0;
    scroll-margin-top: calc(var(--header-actual-height, 105px) + var(--cookie-banner-height, 0px) + 45px);
}

/* Reduce the space before the footer globally on every page. */
section:last-of-type {
    padding-bottom: var(--spacing-sm);
}

section.section-padding {
    padding-top: calc(var(--header-actual-height, 105px) + var(--cookie-banner-height, 0px) + var(--spacing-lg));
}

/* Generic page content container (portfolio, privacy, etc.).
   Aligns to the SAME unified content band as <section> and the nav/overflow-menu,
   so cards/content never stick out wider than the menu line.
   Single source of truth: --container-max-width + --content-inline (variables.css). */
.container {
    width: var(--content-width);
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
}

/* Mobile responsive sections */
@media (max-width: 768px) {
    section {
        padding: var(--spacing-lg) 0;
        scroll-margin-top: calc(50px + var(--cookie-banner-height, 0));
    }

    section.section-padding {
        padding-top: calc(var(--header-actual-height, 105px) + var(--cookie-banner-height, 0px) + var(--spacing-lg)) !important;
    }
    
    body.cookie-banner-visible section {
        scroll-margin-top: calc(50px + var(--cookie-banner-height, 120px));
    }
    
    /* Hero section mobile specific padding */
    section.hero {
        padding-top: calc(var(--header-actual-height, 105px) + var(--cookie-banner-height, 0px) + var(--spacing-xs)) !important;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: calc(100vh - (var(--header-actual-height, 105px) + var(--cookie-banner-height, 0px)));
    }
}

/* Privacy page section - account for cookie banner */
body.cookie-banner-visible #privacy {
    padding-top: calc(var(--header-actual-height, 105px) + var(--cookie-banner-height, 0px) + var(--spacing-lg)) !important;
    scroll-margin-top: calc(var(--header-actual-height, 105px) + var(--cookie-banner-height, 0px) + 45px) !important;
}

/* Section titles with underline */
section h2:not(.hero-subtitle):not(.faq-question),
section h3:not(.faq-question) {
    position: relative;
}

section h2:not(.hero-subtitle):not(.faq-question)::after,
section h3:not(.faq-question)::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: var(--spacing-sm) auto 0 auto !important;
    border-radius: 2px;
    animation: slideIn 0.6s ease-out;
}

/* Remove underline from card headings - must be more specific than section h3::after */
.wsa-card h3::after,
.kv-step h3::after,
.nk-step h3::after,
.kv-pf h3::after,
.nk-pf h3::after,
.kv-legal h3::after,
.nk-legal h3::after,
.gmr-pf h3::after,
.gmr-legal h3::after,
.service-card h3::after,
.portfolio-item h3::after,
.game-card h3::after,
.card h3::after,
.service-card h2::after,
.portfolio-item h2::after,
.game-card h2::after,
.card h2::after,
section .service-card h3::after,
section .portfolio-item h3::after,
section .game-card h3::after,
section .card h3::after,
section .service-card h2::after,
section .portfolio-item h2::after,
section .game-card h2::after,
section .card h2::after,
section.snake-section .snake-game-title::after,
.snake-game-wrapper .snake-game-title::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a3a3a 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem var(--spacing-lg) 4rem;
    padding-top: calc(var(--header-actual-height, 105px) + var(--cookie-banner-height, 0px) + var(--spacing-sm));
}

/* Desktop: Reduce hero padding-top to prevent content from being cut off - minimal spacing */
@media (min-width: 769px) {
    .hero {
        padding-top: calc(var(--header-actual-height, 105px) + var(--cookie-banner-height, 0px));
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(50, 179, 141, 0.25), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(45, 155, 220, 0.25), transparent 40%);
    animation: pulse 4s ease-in-out infinite, moveLights 12s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%   { transform: scale(1); opacity: 1; }
    25%  { transform: scale(1.08); opacity: 0.8; }
    50%  { transform: scale(1.12); opacity: 0.6; }
    75%  { transform: scale(1.08); opacity: 0.8; }
    100% { transform: scale(1);   opacity: 1; }
}

@keyframes moveLights {
    0%, 100% {
        background: radial-gradient(circle at 20% 50%, rgba(50, 179, 141, 0.25), transparent 40%),
                      radial-gradient(circle at 80% 80%, rgba(45, 155, 220, 0.25), transparent 40%);
    }
    25% {
        background: radial-gradient(circle at 30% 30%, rgba(50, 179, 141, 0.30), transparent 35%),
                      radial-gradient(circle at 70% 70%, rgba(45, 155, 220, 0.30), transparent 35%);
    }
    50% {
        background: radial-gradient(circle at 70% 40%, rgba(50, 179, 141, 0.35), transparent 30%),
                      radial-gradient(circle at 30% 90%, rgba(45, 155, 220, 0.35), transparent 30%);
    }
    75% {
        background: radial-gradient(circle at 80% 60%, rgba(50, 179, 141, 0.30), transparent 35%),
                      radial-gradient(circle at 20% 20%, rgba(45, 155, 220, 0.30), transparent 35%);
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.hero-content {
    width: 100%;
    max-width: min(1200px, 95vw);
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    transform: translateY(30px);
    margin: 0 auto;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: calc(var(--spacing-sm) / 2);
    flex-wrap: nowrap;
}

.hero-logo {
    height: clamp(2.5rem, 5vw + 1rem, 4rem);
    width: auto;
    object-fit: contain;
}

.hero-title-text {
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin: 0;
}

.hero-logo {
    width: clamp(50px, 10vw, 80px);
    height: auto;
}

.hero-title-text {
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-sm) / 2);
    background: linear-gradient(135deg, #ffffff, #4fd1c5, #3ba0d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-description {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.3rem);
    color: var(--text-gray);
    margin-bottom: calc(var(--spacing-lg) / 2);
    line-height: 1.6;
}

.hero-description {
    color: var(--text-gray);
    font-size: clamp(0.9rem, 2vw + 0.3rem, 1.1rem);
    margin-bottom: calc(var(--spacing-lg) / 2);
}

.hero-video-container {
    position: relative;
    width: 100%;
    max-width: min(60vw, 800px); 
    margin: var(--spacing-lg) auto;
    aspect-ratio: 16 / 9; /* Standard YouTube video aspect ratio (16:9 = 1.7778) - prevents black bars */
    overflow: hidden;
    border-radius: var(--radius-lg);
}

 @media (max-width: 768px) {
     .hero-video-container {
         max-width: 95vw;
     }
 }

.hero-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--spacing-lg);
}

/* Portfolio, Developers, Partners grids */
.portfolio-grid,
.developers-grid,
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: var(--spacing-lg);
    margin-bottom: calc(var(--spacing-lg) / 2);
}

/* Contact Section */
.contact-container {
    max-width: 600px !important;
    margin: 0 auto !important;
    display: block !important;
    grid: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 0 !important;
}

.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary);
    margin: 0 auto var(--spacing-xl) auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    clear: both;
    float: none;
}

.contact-form button[type="submit"] {
    align-self: center;
    margin-top: var(--spacing-md);
}

.form-group {
    margin-bottom: calc(var(--spacing-md) / 2);
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--bg-dark);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: inherit;
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    display: none;
    white-space: pre-line;
}

.form-message.success {
    background: rgba(50, 179, 141, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
    display: block;
}

.form-message.error {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    display: block;
}

.contact-info {
    text-align: center;
    margin-top: 0;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    clear: both;
    display: block;
    float: none;
}

.contact-email-label {
    color: var(--text-gray);
    margin-bottom: var(--spacing-xs);
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
}

.social-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    transition: transform var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
    color: var(--text-gray);
}

.social-link-item:hover {
    transform: translateY(-3px);
    color: var(--primary);
}

.social-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) saturate(100%) invert(67%) sepia(60%) saturate(500%) hue-rotate(120deg) brightness(95%) contrast(90%);
    transition: filter var(--transition-fast);
}

.social-link-item:hover .social-icon {
    filter: brightness(0) saturate(100%) invert(67%) sepia(60%) saturate(500%) hue-rotate(120deg) brightness(110%) contrast(100%);
}

.social-link-label {
    color: inherit;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 768px) {
    footer .social-links {
        gap: var(--spacing-sm);
    }
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    margin-bottom: calc(var(--spacing-md) / 2);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-question {
    padding: var(--spacing-md) var(--spacing-lg);
    margin: 0;
    cursor: pointer;
    color: var(--text-light);
    font-size: clamp(1rem, 2vw + 0.3rem, 1.2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-user-select: none;
    user-select: none;
    transition: color var(--transition-normal);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
    margin-left: var(--spacing-sm);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
    padding: 0 var(--spacing-lg);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
    padding-top: var(--spacing-md);
}

.faq-answer a {
    color: var(--primary);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Privacy Policy Section */
.privacy-section {
    margin-bottom: calc(var(--spacing-xl) / 2);
    padding-bottom: calc(var(--spacing-lg) / 2);
    border-bottom: 1px solid var(--border-color);
    scroll-margin-top: 151px; /* Offset for sticky header (106px) + section nav (45px) */
}

/* Old rule removed - privacy sections are now cards, not list items */

/* Privacy page main title (h1) - NO underline */
#privacy > .container > h1.section-title::after {
    content: none !important;
    display: none !important;
}

/* First privacy section title - less top margin */
#privacy > .container > .privacy-section-title:first-of-type {
    margin-top: var(--spacing-lg);
}

.privacy-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: calc(var(--spacing-md) / 2);
    margin-top: calc(var(--spacing-lg) / 2);
    scroll-margin-top: 151px; /* Offset for sticky header (106px) + section nav (45px) */
    position: relative;
    text-align: center !important; /* Center align section titles - override any other rules */
    display: block;
    width: 100%;
}

.privacy-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
    animation: slideIn 0.6s ease-out;
}

/* Privacy sections as cards - similar to service-card on index page */
.privacy-section {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl); /* More space between cards */
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-align: center;
}

/* Last privacy section - ensure bottom padding is visible */
.privacy-section:last-child {
    margin-bottom: var(--spacing-xxl); /* Extra space at the bottom */
    padding-bottom: var(--spacing-xl); /* Extra padding at the bottom */
}

.privacy-section:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

/* NO underline in cards - titles are outside cards */
.privacy-section h2::after,
.privacy-section h3::after,
.privacy-section-content h2::after,
.privacy-section-content h3::after,
.privacy-section-content h4::after,
.privacy-section-content h5::after,
.privacy-section-content h6::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

.privacy-section-content {
    color: var(--text-gray);
    line-height: 1.8;
    text-align: left; /* Content left-aligned within centered card */
    margin-top: 0; /* No margin-top, title is outside */
}

.privacy-section-content p {
    margin-bottom: calc(var(--spacing-md) / 2);
}

.privacy-section-content ul,
.privacy-section-content ol {
    margin-bottom: calc(var(--spacing-md) / 2);
    padding-left: var(--spacing-lg);
}

.privacy-section-content li {
    margin-bottom: calc(var(--spacing-xs) / 2);
}

.privacy-section-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-md) 0;
}

.privacy-section-content table th,
.privacy-section-content table td {
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    text-align: left;
}

.privacy-section-content table th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--primary);
}

.privacy-section-content a {
    color: var(--primary);
    text-decoration: underline;
}

.privacy-section-content a:hover {
    color: var(--primary-hover);
}

.privacy-last-updated {
    margin-bottom: var(--spacing-lg);
    font-size: 0.9rem;
    color: var(--text-gray);
}

@media (max-width: 768px) {
    .hero,
    section.hero {
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    section.hero {
        min-height: auto !important;
        padding-bottom: var(--spacing-sm) !important;
    }
}

/* ===== organisms/footer.css ===== */
/* ============================================
   ORGANISMS - Footer
   ============================================ */

footer,
.site-footer {
    background: var(--bg-card);
    padding: var(--spacing-md) 0 var(--spacing-sm);
    text-align: center;
    color: var(--text-gray);
    margin-top: calc(var(--spacing-xxl) / 2);
    position: relative;
    z-index: 10;
}

.footer-content {
    width: var(--content-width);
    max-width: none;
    margin-inline: auto;
}

/* Social Links */
footer .social-links,
.site-footer .social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

footer .social-link,
.site-footer .social-link {
    color: var(--text-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

footer .social-link:hover,
.site-footer .social-link:hover {
    color: var(--primary);
}

footer .social-link i,
.site-footer .social-link i {
    font-size: 1.5rem;
}

/* Copyright */
.copyright {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.8;
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xs);
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-separator {
    opacity: 0.5;
}

/* Responsive Styles */
@media (max-width: 768px) {
    footer,
    .site-footer {
        padding: var(--spacing-md) 5% var(--spacing-sm);
        margin-top: calc(var(--spacing-xxl) / 2);
    }

    footer .social-links,
    .site-footer .social-links {
        gap: var(--spacing-md);
    }

    footer .social-link,
    .site-footer .social-link {
        font-size: 1rem;
    }

    footer .social-link i,
    .site-footer .social-link i {
        font-size: 1.3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .footer-separator {
        display: none;
    }
}


/* ===== organisms/modals.css ===== */
/* ============================================
   ORGANISMS - Modals
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* On mobile, adjust modal top position when cookie banner is visible */
@media (max-width: 768px) {
    body.cookie-banner-visible .modal {
        top: var(--cookie-banner-height, 0);
        height: calc(100vh - var(--cookie-banner-height, 0));
    }
    
    body.cookie-banner-visible .modal-content {
        margin-top: var(--spacing-md);
        max-height: calc(90vh - var(--cookie-banner-height, 0) - var(--spacing-md));
    }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    margin: auto;
    padding: var(--spacing-xl);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.close-modal-btn {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-gray);
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.close-modal-btn:hover {
    color: var(--primary);
    background: rgba(50, 179, 141, 0.1);
}

.modal-title {
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
    font-size: 2rem;
    padding-right: 50px;
}

.modal-body {
    color: var(--text-gray);
    line-height: 1.8;
}

.modal-body h3 {
    color: var(--primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.modal-body ul,
.modal-body ol {
    margin-top: var(--spacing-md);
    padding-left: 2rem;
}

.modal-body li {
    margin-bottom: var(--spacing-xs);
}

.modal-body p {
    margin-bottom: calc(var(--spacing-md) / 2);
}

/* ===== organisms/grids.css ===== */
/* ============================================
   ORGANISMS - Grids
   ============================================ */

.services-grid {
    display: grid;
    /* 3 columns fixed, buttons align at bottom via flex in cards.css */
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(var(--spacing-sm), 2vw, var(--spacing-lg));
    align-items: stretch;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(var(--spacing-sm), 2vw, var(--spacing-lg));
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: clamp(var(--spacing-sm), 2vw, var(--spacing-lg));
    margin-top: calc(var(--spacing-lg) / 2);
    align-items: stretch;
}

/* Highlights section: 2 columns instead of 3 */
body.portfolio-page #highlights .games-grid {
    grid-template-columns: 1fr 1fr !important;
    max-width: 100% !important;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .services-grid,
    .portfolio-grid,
    .games-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
    }
    
    body.portfolio-page #highlights .games-grid {
        grid-template-columns: 1fr !important;
    }
    
    .portfolio-item,
    .game-card,
    .portfolio-card-base {
        padding: var(--spacing-md);
    }
}

.games-grid > .game-card,
.games-grid > .portfolio-card-base {
    align-self: stretch;
    /* Minden kártya ugyanolyan magas legyen */
    height: 100%;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    text-align: center;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    font-size: 4rem;
    margin-bottom: calc(var(--spacing-md) / 2);
}

.portfolio-info h3 {
    color: var(--primary);
    margin-bottom: calc(var(--spacing-sm) / 2);
}

.portfolio-info p {
    color: var(--text-gray);
}

.partner-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Contact container styles removed - now in sections.css */
/* DO NOT add .contact-container here - it conflicts with sections.css */

.hashtags {
    display: inline;
    margin-left: var(--spacing-sm);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Contact container responsive styles moved to sections.css */


/* ===== organisms/cookie-banner.css ===== */
/* ============================================
   ORGANISMS - Cookie Banner
   ============================================ */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* BELOW the page-transition overlay (2147483000) so the opaque overlay hides
       the banner AND its layout shift while loading — it appears already in place
       when the overlay lifts. Still above the sticky header/section-nav. */
    z-index: 2147482000;
    background: linear-gradient(135deg, rgba(50, 179, 141, 0.95) 0%, rgba(50, 179, 141, 0.9) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: var(--spacing-xs) var(--spacing-lg);
    max-height: 100px;
    overflow: hidden;
    /* No slide-in animation: the banner loads in the background with the page,
       so there is no separate motion and no content "jump". */
    transform: translateY(-100%);
}

.cookie-banner.show {
    transform: translateY(0);
}

/* Push header and body content down when banner is visible — no transition so the
   layout settles instantly (under the overlay / hidden body), never a visible jump. */
body.cookie-banner-visible header {
    top: var(--cookie-banner-height, 100px) !important;
    position: fixed !important;
}

body.cookie-banner-visible {
    padding-top: 0;
}

body.cookie-banner-visible main {
    margin-top: 0;
}

/* Remove empty space between cookie banner and navigation */
.cookie-banner {
    margin: 0;
    padding: var(--spacing-xs) var(--spacing-lg);
    box-sizing: border-box;
}

/* Update banner height on window resize (for responsive) */
@media (max-width: 768px) {
    .cookie-banner.show {
        /* Banner height will be calculated dynamically by JavaScript */
        will-change: transform;
    }
}

.cookie-banner-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 250px;
}

.cookie-banner-message {
    color: var(--text-light);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.cookie-banner-actions .btn {
    white-space: nowrap;
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
}

/* Cookie Settings Modal */
/* The settings modal is launched FROM the banner, so it must render above it.
   The generic .modal z-index (--z-modal: 2000) is far below the banner
   (2147482000), which would let the banner peek over the modal's top. Raise it
   above the banner, but keep it below the page-transition overlay (2147483000). */
#cookie-settings-modal {
    z-index: 2147482500;
}

#cookie-settings-modal .modal-content {
    max-width: 600px;
}

.cookie-category {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(50, 179, 141, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(50, 179, 141, 0.3);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.cookie-category-header h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0;
    flex: 1;
}

.cookie-category-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    margin-top: var(--spacing-xs);
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-left: var(--spacing-sm);
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: var(--transition-fast);
    border-radius: 26px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-light);
    transition: var(--transition-fast);
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--primary);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.cookie-settings-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: var(--spacing-xs) var(--spacing-sm) !important;
        max-height: none;
        overflow: visible;
        padding-bottom: calc(var(--spacing-xs) + env(safe-area-inset-bottom, 0px)) !important;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: var(--spacing-xs);
    }
    
    .cookie-banner-text {
        min-width: auto;
        width: 100%;
    }
    
    .cookie-banner-message {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem) !important;
        line-height: 1.4;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        width: 100%;
        gap: var(--spacing-xs);
    }
    
    .cookie-banner-actions .btn {
        flex: 1;
        min-width: 100px;
        padding: var(--spacing-xs) var(--spacing-sm) !important;
        font-size: clamp(0.75rem, 2.5vw, 0.85rem) !important;
    }
    
    /* Update CSS variable on resize for mobile */
    body.cookie-banner-visible header {
        top: var(--cookie-banner-height, 120px) !important;
    }
    
    body.cookie-banner-visible {
        padding-top: 0 !important;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
    
    .cookie-toggle {
        align-self: flex-end;
    }
    
    .cookie-settings-actions {
        flex-direction: column;
    }
    
    .cookie-settings-actions .btn {
        width: 100%;
    }
}


/* ===== organisms/portfolio-specific.css ===== */
/* ============================================
   ORGANISMS - Portfolio Page Specific Styles
   ============================================ */

/* Portfolio Page Titles - Centered with animated underline */
body.portfolio-page .page-title {
    text-align: center !important;
    font-size: clamp(1.8rem, 4vw + 0.5rem, 2.5rem) !important;
    margin-bottom: var(--spacing-sm);
    position: relative;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.portfolio-page .page-title::after {
    content: '' !important;
    display: block !important;
    width: 80px !important;
    height: 4px !important;
    background: var(--gradient) !important;
    margin-top: var(--spacing-sm) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 0 !important;
    border-radius: 2px !important;
    animation: slideIn 0.6s ease-out !important;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

.intro-text {
    text-align: center;
    color: var(--text-gray);
    font-size: clamp(0.95rem, 2vw + 0.3rem, 1.1rem);
    margin-bottom: var(--spacing-xl);
    max-width: min(800px, 90vw);
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Thank You Message Section */
.thank-you-section {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-md);
}

.thank-you-message {
    font-size: clamp(1.2rem, 3vw + 0.5rem, 1.8rem);
    font-weight: 600;
    color: var(--text-gray);
    /* No box styling, just plain text like titles */
    margin: 0;
    line-height: 1.8;
}

/* Portfolio page body padding for fixed header */
body.portfolio-page {
    padding-top: 0;
}

/* Portfolio page - account for cookie banner */
body.cookie-banner-visible.portfolio-page {
    padding-top: 0 !important;
}

body.portfolio-page main {
    padding-top: calc(var(--header-actual-height, 105px) + var(--cookie-banner-height, 0px) + var(--spacing-lg));
}

@media (max-width: 768px) {
    body.portfolio-page main {
        padding-top: calc(var(--header-actual-height, 105px) + var(--cookie-banner-height, 0px) + var(--spacing-xs));
    }
}

/* Portfolio page title - account for cookie banner */
body.cookie-banner-visible.portfolio-page .page-title {
    margin-top: 0 !important;
    scroll-margin-top: 151px !important;
}

/* Game card specific styles */
.game-company {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0 !important; /* No gap between company and title */
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1; /* No extra line height to prevent gaps */
    font-style: italic;
}

.game-description {
    margin-top: 0 !important; /* No gap between text and tasks */
    padding-top: 0 !important; /* No gap between text and tasks */
    border-top: none !important; /* No border, no gap */
}

.game-description h4 {
    color: var(--primary);
    margin-top: var(--spacing-sm) !important; /* Üres sor a zöld szöveg előtt */
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.game-description ul {
    list-style: none;
    color: var(--text-gray);
    margin-top: var(--spacing-xs);
    line-height: 1.8;
}

.game-description p {
    color: var(--text-gray);
    line-height: 1.8;
}

.game-description li {
    padding: 0.3rem 0;
    padding-left: var(--spacing-md);
    position: relative;
}

.game-description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Plugin icon in title */
.plugin-icon {
    display: inline-block;
    margin-right: var(--spacing-xs);
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    vertical-align: middle;
}

body.portfolio-page .unreal-plugin-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Highlights section should never render 3 cards per row */
body.portfolio-page #highlights .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    body.portfolio-page #highlights .games-grid {
        grid-template-columns: 1fr;
    }
}

.game-description ul ul {
    margin-left: var(--spacing-sm);
    margin-top: 0.3rem;
}

.game-additional-media {
    padding: 0 var(--spacing-md);
    flex-shrink: 0;
    /* Default: videos stacked vertically (for game development projects) */
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    /* Positioned right before buttons, after game-info */
    order: 2; /* After game-info, before game-links */
}

/* Grid layout (2 columns) only for plugin cards */
#plugins .game-additional-media,
#plugins .additional-media {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

/* Unreal Engine AI Plugin: desktop grid layout for videos */
@media (min-width: 769px) {
    [data-project-id="unreal-ai-plugin"] .additional-media {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: var(--spacing-sm) !important;
    }
}

@media (max-width: 768px) {
    [data-project-id="unreal-ai-plugin"] .additional-media {
        grid-template-columns: 1fr !important;
    }
}

/* Plugin cards: stacked vertically (one below the other) instead of side by side */
body.portfolio-page #plugins .games-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
}

.game-additional-media .game-video {
    margin-bottom: 0;
    /* Default: 16:9 aspect ratio (fekvő videók) */
    aspect-ratio: 16 / 9;
}

/* Short videók (álló, mobilos) - 9:16 arány */
.game-additional-media .game-video[data-aspect-ratio="9:16"] {
    aspect-ratio: 9 / 16;
}

.game-additional-media:empty {
    display: none;
}

.game-link.secondary {
    background: transparent;
    border: 2px solid var(--primary);
}

.game-link.secondary:hover {
    background: var(--primary);
}

.google-doc-container {
    /* Felül és alul egyenlő hely */
    margin: var(--spacing-lg) auto;
    border-radius: var(--radius-lg);
    overflow: hidden; /* Hidden, hogy ne lógjon ki semmi */
    border: 2px solid var(--primary);
    background: var(--bg-card);
    /* Szélesség: dinamikusan számolva JavaScript-tel */
    width: 100%;
    max-width: min(1200px, 95vw);
    /* Magasság: dinamikusan számolva JavaScript-tel (PDF magasság + 20px) */
    /* aspect-ratio eltávolítva, mert dinamikusan számoljuk */
    padding: 10px; /* Fix 10px padding minden oldalon */
    position: relative;
    /* FLEXBOX középre igazításhoz - mindkét irányban középre igazítja az iframe-et */
    display: flex;
    align-items: center; /* Függőlegesen középre */
    justify-content: center; /* Vízszintesen középre */
    box-sizing: border-box;
}

.google-doc-container iframe {
    /* Méret: dinamikusan számolva JavaScript-tel (direct width/height, no transform) */
    border: none;
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    /* No transform, using direct width/height for better control */
}

.hidden {
    display: none;
}

.section-spacing {
    margin-top: 4rem;
    scroll-margin-top: 151px; /* Offset for sticky header (106px) + section nav (45px) */
}

body.portfolio-page main .section-spacing:first-of-type {
    margin-top: 0;
}

body.portfolio-page main .section-spacing:first-of-type .page-title {
    margin-top: 0;
}

.section-title-spacing {
    margin-bottom: var(--spacing-lg);
}

.game-description-spacing {
    margin-top: var(--spacing-sm);
}

/* Portolások szekció stílusai */
#porting .game-card--compact {
    margin-top: 0;
    padding-top: 0;
}

#porting .game-info {
    padding-top: 0;
}

/* Remove the ::before pseudo-element that creates extra space */
#porting .game-card:not(:has(> .game-image)):not(:has(> .game-video)) .game-info::before {
    content: none;
    display: none;
}

.porting-intro {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    margin: 0 0 var(--spacing-sm) 0;
    margin-top: 0 !important;
}

.porting-intro-text {
    display: inline-block;
}

.porting-icon {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.game-video-placeholder {
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

/* Portfolio responsive specific */
@media (max-width: 768px) {
    body.portfolio-page {
        padding: 0;
    }

    body.portfolio-page main > .container {
        padding-top: 0;
    }

    /* Only apply to games-grid that are NOT in highlights or plugins sections */
    body.portfolio-page #projects .games-grid,
    body.portfolio-page #porting .games-grid {
        grid-template-columns: 1fr !important;
    }

    .game-links {
        flex-direction: column;
    }

    .game-link {
        text-align: center;
    }

    .google-doc-container {
        width: calc(100% - 2rem);
        max-width: calc(100vw - 2rem);
        /* Magasság: dinamikusan számolva JavaScript-tel */
    }

    .container {
        padding: 0;
    }
}

/* Maintenance page specific styles */
.maintenance-message {
    font-size: 2.5rem !important;
    font-weight: bold !important;
    color: var(--primary) !important;
    margin-top: 3rem !important;
    text-align: center;
    text-shadow: 0 0 20px rgba(50, 179, 141, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

@media (max-width: 768px) {
    .maintenance-message {
        font-size: 1.8rem !important;
    }
}


/* ===== main.css trailing overrides ===== */
.contact-container {
    max-width: 600px !important;
    margin: 0 auto !important;
    display: block !important;
    grid: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    gap: 0 !important;
}

@media (max-width: 768px) {
    footer .social-links {
        gap: var(--spacing-sm) !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}
