:root {
    
    
    --primary-blue: #0A84FF;
    --primary-green: #30D158;
    --primary-glow: rgba(10, 132, 255, 0.4);
    --dark-bg: #1c1c1e;
    --darker-bg: #121212;

    
    --glass-bg: rgba(44, 44, 46, 0.55);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --glass-shadow-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.6);

    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --text-accent: #0A84FF;
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    
    --font-size-hero: clamp(2.2rem, 6vw + 1rem, 3.5rem);
    --font-size-h1: clamp(1.5rem, 4vw + 0.75rem, 2.5rem);
    --font-size-h2: clamp(1.25rem, 3vw + 0.6rem, 1.85rem);
    --font-size-body: clamp(1rem, 1vw + 0.8rem, 1.125rem);
    --spacing-section: clamp(1.5rem, 4vw, 3rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: var(--font-size-body);
    
}

.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.main-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(1.2);
    transform: scale(1.05);
    animation: drift 60s linear infinite alternate;
}

.bg-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15), transparent 60%),
        linear-gradient(to bottom, transparent 40%, #000000 100%);
    pointer-events: none;
}

@keyframes drift {
    0% {
        transform: scale(1.05) translate(0, 0);
    }

    100% {
        transform: scale(1.15) translate(-1%, 1%);
    }
}

.app-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(8px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .app-container {
        padding: 16px 24px;
    }
}

.section-spacing {
    margin-bottom: var(--spacing-section);
}

.glass-panel,
.glass-card,
.glass-chip {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    border-radius: 20px;
}

.glass-panel:hover,
.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-hover);
    background: rgba(58, 58, 60, 0.65);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    
    position: sticky;
    top: 12px;
    z-index: 1000;
    transition: var(--transition-smooth);
    margin-left: -8px;
    margin-right: -8px;
    padding: 8px 12px;
    border-radius: 12px;
}

.scroll-content {
    padding-top: 0px;
}

.app-header.sticky {
    background: rgba(28, 28, 30, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.nav-icon,
.header-icon-v2 {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    transition: var(--transition-fast);
    color: var(--text-main);
    text-decoration: none;
}

.header-icon-v2 svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    display: block;
}

.header-actions-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 640px) {
    .header-actions-v2 {
        gap: 4px;
    }
    .header-icon-v2, .nav-icon {
        width: 32px;
        height: 32px;
    }
}

.nav-icon {
    gap: 5px;
}

.header-icon-v2:hover {
    background: var(--glass-border-hover);
    transform: translateY(-2px);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.nav-icon span {
    display: block;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-icon span:nth-child(1) {
    width: 18px;
}

.nav-icon span:nth-child(2) {
    width: 14px;
}

.nav-icon span:nth-child(3) {
    width: 10px;
}

.nav-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 6px);
    width: 20px;
}

.nav-icon.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -6px);
    width: 20px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding-top: env(safe-area-inset-top);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

.mobile-nav a {
    font-size: 2.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.04em;
    transition: var(--transition-smooth);
    position: relative;
}

.mobile-nav a:hover {
    color: var(--primary-blue);
    transform: scale(1.05);
}

.mobile-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition-smooth);
}

.mobile-nav a:hover::after {
    width: 100%;
}

.hero {
    margin-bottom: var(--spacing-section);
}

.hero-content {
    border-radius: 20px;
    padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero h1 {
    font-size: var(--font-size-h1);
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #c8c8cc;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    font-size: var(--font-size-hero);
    font-weight: 700;
    color: var(--text-main);
    display: block;
    letter-spacing: -0.03em;
}

.subtext {
    font-size: var(--font-size-body);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.countries {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: var(--spacing-section);
}

@media (min-width: 640px) {
    .countries {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .countries {
        grid-template-columns: repeat(4, 1fr);
    }
}

.country-card {
    border-radius: 20px;
    height: 160px;
    position: relative;
    overflow: hidden;
}

.country-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.country-card:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    font-weight: 600;
}

.flag {
    margin-right: 6px;
    font-size: 14px;
}

.about {
    margin-bottom: var(--spacing-section);
}

.glass-panel {
    border-radius: 20px;
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.glow-dot {
    width: 10px;
    height: 10px;
    background-color: var(--text-accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--text-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 8px;
}

p {
    font-size: var(--font-size-body);
    line-height: 1.7;
    color: var(--text-muted);
}

.featured-card {
    position: relative;
}

.label-badge {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.featured-header h3 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.project-tags {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.icons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.icon-item {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.icon-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.image-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    border: 1px solid var(--glass-border);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.play-btn-overlay:hover {
    background: var(--primary-blue);
    transform: translate(-50%, -50%) scale(1.1);
}

.glass-button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.15rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.glass-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: var(--glass-border-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    margin-bottom: var(--spacing-section);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

@media (max-width: 640px) {

    .table-responsive table,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
        display: block;
    }

    .table-responsive thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .table-responsive tr {
        border-bottom: 1px solid var(--glass-border);
        padding: 10px 0;
    }

    .table-responsive td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .table-responsive td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: var(--text-accent);
    }
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    color: var(--text-accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.contact-form {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr 1fr;
    }

    .form-full {
        grid-column: span 2;
    }
}

input,
textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: var(--font-size-body);
    transition: var(--transition-fast);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--text-accent);
    background: rgba(255, 255, 255, 0.1);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--dark-bg);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
}

.footer-info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.company-name {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

address {
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
}

.copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.interactive {
    position: relative;
    overflow: hidden;
}

.interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
            rgba(255, 255, 255, 0.08),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.interactive:hover::before {
    opacity: 1;
}

.app-footer {
    padding-bottom: 2rem;
    margin-top: calc(var(--spacing-section) * 2);
}

.slim-footer-content {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    padding: 1.5rem 1rem !important;
    background: rgba(28, 28, 30, 0.4);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 100%;
    white-space: nowrap !important;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    letter-spacing: 0.2px;
}

.footer-link:hover {
    color: var(--text-main);
}

.footer-separator {
    color: var(--glass-border);
    user-select: none;
    font-size: 0.8rem;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.lang-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lang-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: transform 0.2s ease, filter 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn img.ku-flag-icon,
.lang-dropdown-link img.ku-flag-icon {
    width: 1.25em;
    height: auto;
    border-radius: 2px;
}

.lang-btn:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

.lang-dropdown {
    display: none !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 280px;
    
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 20px;
    z-index: 1600;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth), transform 0.3s var(--transition-smooth);
}

.lang-dropdown.show {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 600px) {
    .slim-footer-content {
        justify-content: center !important;
        gap: 0.75rem !important;
        flex-wrap: wrap !important;
    }

    .lang-dropdown.show {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-separator {
        display: none;
    }
}

.brand-style {
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.brand-a,
.brand-dot-co {
    color: var(--primary-blue);
}

.lang-dropdown-link {
    font-size: 1.25rem;
    text-decoration: none;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-dropdown-link:hover {
    transform: scale(1.1);
}

.auth-modal-wrapper {
    padding: 10px 0;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.auth-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-tab:hover:not(.active) {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--glass-border);
}

.auth-separator span {
    padding: 0 10px;
}

.google-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white !important;
    color: #3c4043 !important;
    font-weight: 500;
}

.google-auth-btn:hover {
    background: #f8f9fa !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

img, video, canvas, svg, iframe {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

button, a, input[type="submit"], input[type="button"], .btn, .db-tab,
.header-icon-v2, .nav-icon, .role-card, .glass-card {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

button, .btn, .db-tab {
    min-height: 44px;
    min-width: 44px;
}

h1 { font-size: clamp(1.75rem, 4vw + 0.8rem, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 3vw + 0.6rem, 1.85rem); line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw + 0.5rem, 1.4rem); line-height: 1.35; }
p, li { font-size: clamp(1rem, 1vw + 0.8rem, 1.125rem); line-height: 1.7; }

@media (max-width: 380px) {
    .app-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero h1 .highlight {
        font-size: 1.75rem;
    }

    .header-actions-v2 {
        gap: 8px;
    }

    .header-icon-v2, .nav-icon {
        width: 36px;
        height: 36px;
    }

    .db-tab {
        font-size: 1rem;
        padding: 7px 3px;
    }
}

@media (min-width: 380px) and (max-width: 480px) {
    .countries {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 0.5rem 1.25rem;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .countries {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-container {
        padding: 16px 20px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .countries {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-content {
        padding: 0.5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .countries {
        grid-template-columns: repeat(4, 1fr);
    }

    .glass-card:hover {
        transform: translateY(-4px);
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .mobile-nav {
        gap: 1.25rem;
        padding-top: calc(env(safe-area-inset-top) + 10px);
        overflow-y: auto;
    }

    .mobile-nav a {
        font-size: 1.4rem;
    }

    .hero-content {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 85vh;
        padding: 20px 16px 24px;
        margin: 0;
        max-width: 100%;
        border-bottom: none;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-full {
        grid-column: 1;
    }

    input, textarea, select {
        font-size: 16px; 
        padding: 12px;
    }
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

@media (max-width: 640px) {
    .table-wrapper table {
        min-width: 500px;
    }
}

@media (max-width: 768px) {
    
    .main-bg {
        animation-duration: 120s; 
    }

    
    .glass-panel:hover, .glass-card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .main-bg {
        animation: none;
        transform: scale(1.05);
    }
}

@media (max-width: 380px) {
    #pwa-install-banner {
        right: 8px !important;
        max-width: calc(100vw - 16px) !important;
    }

    #pwa-install-fab {
        right: 12px !important;
        bottom: 16px !important;
        font-size: 0.82rem !important;
        padding: 11px 16px !important;
    }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #pwa-install-fab {
        bottom: calc(24px + env(safe-area-inset-bottom)) !important;
    }

    .app-container {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .glass-panel, .glass-card {
        border-width: 0.5px;
    }
}

@media print {
    .background-wrapper, .mobile-nav, .app-header,
    .cookie-banner, #pwa-install-banner, #pwa-install-fab,
    .footer-cta, .btn-primary {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    a { color: #0044cc; }
    a::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #666; }
}


/* ══════════════════════════════════════════════════════════════════
   aBest.co GLOW FRAME EFFECT
   Subtiler blauer Leuchtrahmen – alle vier Seiten – CSS only
   Performance: fixed pseudo-element, no JS, no repaints
   ══════════════════════════════════════════════════════════════════ */

/* ── Haupt-Glow: fixed overlay über gesamtem Viewport ──────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;

    /* Vier-seitiger Glow via box-shadow (inset) + radial gradient */
    box-shadow:
        inset 0   0  60px  0 rgba(0, 122, 255, 0.1),   /* oben  */
        inset 0 -60px 60px 0 rgba(0, 122, 255, 0.08),   /* unten */
        inset  60px 0 60px 0 rgba(0, 122, 255, 0.06),   /* links */
        inset -60px 0 60px 0 rgba(0, 122, 255, 0.06);   /* rechts */

    /* Sanfte Puls-Animation – sehr langsam, kaum wahrnehmbar */
    animation: glowPulse 10s ease-in-out infinite;

    /* Kein Einfluss auf Layout */
    border-radius: 0;
}

/* ── Zweite Schicht: dünner leuchtender Rahmen-Linie ───────────── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9989;
    border: 1px solid rgba(0, 122, 255, 0.12);
    box-shadow:
        0 0 20px rgba(0, 122, 255, 0.08),
        0 0  8px rgba(0, 122, 255, 0.12);
    border-radius: 0;
}

/* ── Puls-Animation – kaum wahrnehmbar, sehr subtil ───────────── */
@keyframes glowPulse {
    0%, 100% {
        box-shadow:
            inset 0   0  80px  0 rgba(0, 122, 255, 0.13),
            inset 0 -80px 80px 0 rgba(0, 122, 255, 0.10),
            inset  80px 0 80px 0 rgba(0, 122, 255, 0.08),
            inset -80px 0 80px 0 rgba(0, 122, 255, 0.08);
    }
    50% {
        box-shadow:
            inset 0   0  100px 0 rgba(0, 122, 255, 0.18),
            inset 0 -100px 100px 0 rgba(0, 122, 255, 0.14),
            inset  100px 0 100px 0 rgba(0, 122, 255, 0.11),
            inset -100px 0 100px 0 rgba(0, 122, 255, 0.11);
    }
}

/* ── Reduced Motion: Puls deaktivieren ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none;
    }
}

/* ── Mobile: etwas stärker (kleineres Viewport, mehr Wirkung) ─── */
@media (max-width: 480px) {
    body::before {
        box-shadow:
            inset 0   0  50px 0 rgba(0, 122, 255, 0.15),
            inset 0 -50px 50px 0 rgba(0, 122, 255, 0.12),
            inset  50px 0 50px 0 rgba(0, 122, 255, 0.10),
            inset -50px 0 50px 0 rgba(0, 122, 255, 0.10);
    }
}

/* ── Interactive Map ── */
.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
}
.world-map-svg {
    width: 100%;
    height: auto;
    fill: rgba(255,255,255,0.1);
    stroke: rgba(255,255,255,0.2);
    stroke-width: 0.5;
}
.map-hotspot {
    cursor: pointer;
    transition: transform 0.3s;
}
.map-hotspot:hover {
    transform: scale(1.5);
}
.hotspot-pulse {
    fill: var(--primary-blue);
    filter: drop-shadow(0 0 8px var(--primary-blue));
    animation: hotspotPulse 2s infinite;
}
@keyframes hotspotPulse {
    0% { r: 3; opacity: 1; }
    100% { r: 8; opacity: 0; }
}
.map-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 100;
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(10px);
}
.map-hotspot:hover + .map-tooltip, .map-tooltip:hover {
    opacity: 1;
    transform: translateY(0);
}

/* ── Lead CTAs & Deep Content ── */
.lead-cta-strip {
    background: linear-gradient(90deg, rgba(10,132,255,0.1) 0%, rgba(10,132,255,0.02) 100%);
    border: 1px solid rgba(10,132,255,0.2);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}
.lead-cta-content h3 { margin-bottom: 5px; font-size: 1.1rem; color: var(--text-main); }
.lead-cta-content p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.project-detail-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 28px;
    margin: 24px 0;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .lead-cta-strip {
        flex-direction: column;
        text-align: center;
    }
    .project-detail-image { height: 300px; }
}

