/* ==========================================================================
   GOOGLE TRANSLATE UI CLEANUP — NUCLEAR
   Blocks ALL Google Translate popups, banners, evaluation dialogs, tooltips
   ========================================================================== */
#google_translate_element { position: fixed !important; top: -9999px !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; z-index: -1 !important; }
.goog-te-banner-frame, .skiptranslate > iframe, .goog-te-balloon-frame, .goog-tooltip, .goog-tooltip:hover, .goog-te-menu-frame, .goog-te-ftab-frame { display: none !important; visibility: hidden !important; height: 0 !important; width: 0 !important; max-height: 0 !important; max-width: 0 !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; position: fixed !important; top: -9999px !important; left: -9999px !important; }
.goog-te-gadget { opacity: 0 !important; pointer-events: none !important; height: 0 !important; overflow: hidden !important; position: absolute !important; top: -9999px !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; border: none !important; }
body { top: 0 !important; }
body > .skiptranslate { display: none !important; visibility: hidden !important; height: 0 !important; overflow: hidden !important; }
font[style*="vertical-align"] { vertical-align: inherit !important; }
iframe.goog-te-balloon-frame { display: none !important; }
.goog-te-spinner-pos { display: none !important; }
div[id^="goog-gt-"] { display: none !important; }
#goog-gt-tt, .goog-te-menu-value, .goog-te-gadget-icon { display: none !important; }

/* =============================================
   LoraLabs — Professional Design System
   Mobile-first, zero-overflow guarantee
   ============================================= */

/* ---------- VARIABLES ---------- */
:root {
    /* --- Dark Theme (Default) --- */
    --bg-body:     #020617;
    --bg-surface:  #0f172a;
    --text-main:   #f8fafc;
    --text-muted:  #94a3b8;
    --border-color: rgba(255,255,255,0.1);
    --glass-bg:    rgba(15,23,42,0.8);
    
    /* --- Brand Colors --- */
    --primary:     #3d83ff;
    --primary-dark:#2563eb;
    --accent:      #7c3aed;
    --glow:        rgba(61, 131, 255, 0.4);
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-body:     #ffffff;
    --bg-surface:  #f8fafc;
    --text-main:   #0f172a;
    --text-muted:  #475569;
    --border-color: rgba(0,0,0,0.1);
    --glass-bg:    rgba(255,255,255,0.9);
}

/* Light Mode Aesthetic Overrides */
[data-theme="light"] .glass-card,
[data-theme="light"] .hero-card,
[data-theme="light"] .card {
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    background: #ffffff;
    border-color: rgba(0,0,0,0.05);
}

[data-theme="light"] .btn-ghost {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .header.sticky {
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

[data-theme="light"] .nav-menu a:hover {
    background: rgba(0,0,0,0.03);
}

[data-theme="light"] .theme-toggle,
[data-theme="light"] .lang-btn {
    background: rgba(0,0,0,0.05);
    color: #0f172a;
}

[data-theme="light"] .nav-menu a {
    color: rgba(15, 23, 42, 0.7);
}
[data-theme="light"] .nav-menu a:hover,
[data-theme="light"] .nav-menu a.active {
    color: #0f172a;
}

[data-theme="light"] .logo span {
    color: #0f172a;
}




/* ---------- RESET ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* CRITICAL: lock horizontal scroll at root */
    overflow-x: clip;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
    /* CRITICAL: prevent any child from causing horizontal scroll */
    overflow-x: clip;
    max-width: 100%;
}

body.no-scroll {
    overflow: hidden;
    position: fixed;  /* iOS fix: prevents background from scrolling through */
    width: 100%;
    top: 0;
    left: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.15;
}

/* ---------- LAYOUT CONTAINERS ---------- */
.wrapper {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.4s var(--ease);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff !important;
    box-shadow: 0 8px 25px var(--glow), 
                inset 0 1px 1px rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.2);
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px var(--glow);
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
}

.btn-ghost {
    background: rgba(255,255,255,0.03);
    border: 1.5px solid var(--border-color);
    color: var(--text-main);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    border-color: var(--primary);
    background: rgba(61, 131, 255, 0.1);
    transform: translateY(-4px);
}

.btn-sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
}

/* ---------- EYEBROW / TAGS ---------- */
.eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    display: block;
}

.text-blue { color: var(--primary); }

/* ---------- HEADER ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    padding-top: calc(0.8rem + env(safe-area-inset-top, 0px));
    transition: all 0.3s var(--ease);
    z-index: 1000;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 10001;
    transition: width 0.1s linear;
}

header.sticky {
    padding: 0.6rem 0;
    padding-top: calc(0.6rem + env(safe-area-inset-top, 0px));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-inner {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    flex-shrink: 0;
    z-index: 1000001; /* Above menu overlay */
    position: relative;
}
.logo img {
    height: 38px;
    width: auto;
}
.logo span {
    color: #ffffff;
}

/* Desktop nav */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
    position: relative;

    z-index: 200;
}
.lang-btn:hover {
    border-color: var(--primary);
    background: rgba(59,130,246,0.1);
    transform: translateY(-2px);
}
.lang-btn i { font-size: 1rem; color: var(--primary); }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.6rem;
    min-width: 180px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    backdrop-filter: blur(12px);
}
.lang-dropdown.open { display: flex; }

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
}
.lang-option:hover { background: rgba(59,130,246,0.1); color: var(--text-main); }
.lang-option.active { color: var(--primary); font-weight: 700; }
.lang-option .flag { font-size: 1.2rem; }

.lang-wrapper {
    position: relative;
    display: none !important;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.theme-toggle:hover {
    background: rgba(59,130,246,0.1);
    border-color: var(--primary);
    transform: rotate(15deg);
}
[data-theme="light"] .theme-toggle {
    background: rgba(0,0,0,0.03);
}
.theme-toggle i { font-size: 1.1rem; }
.theme-toggle .fa-sun { display: none; }
[data-theme="light"] .theme-toggle .fa-moon { display: none; }
[data-theme="light"] .theme-toggle .fa-sun { display: block; }

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-menu a {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s var(--ease);
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    border: 1px solid transparent;
    display: block;
}
.nav-menu a:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
    border-color: var(--border-color);
    transform: translateY(-1px);
}
.nav-menu a.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.nav-cta {
    background: linear-gradient(135deg, #6366f1, #3b82f6) !important;
    color: #fff !important;
    padding: 0.6rem 1.6rem;
    border-radius: 50px;
    font-size: 0.85rem !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--glow);
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    z-index: 1000001; /* Above menu overlay */
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s var(--ease);
}
.hamburger.open {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    transform: scale(1.1);
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.35s var(--ease);
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    z-index: 1;        /* Keep hero BELOW the nav overlay */
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    padding-bottom: 4rem;
    background: url('hero_bg.png') center center / cover no-repeat;
    transition: background 0.4s var(--ease);
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        var(--bg-body) 0%,
        rgba(2,6,23,0.3) 100%);
    opacity: 0.9;
    pointer-events: none;
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(105deg,
        rgba(255,255,255,0.75) 0%,
        rgba(255,255,255,0.40) 100%);
}

[data-theme="light"] .hero {
    background: url('hero_bg_light_v2.png') center center / cover no-repeat;
    background-color: #ffffff;
}

[data-theme="light"] .hero-desc {
    color: var(--text-muted);
    text-shadow: none;
}

/* ---------- APPS HERO ---------- */
.apps-hero {
    position: relative;
    z-index: 1;
    min-height: 75svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 5rem;
    background: url('apps_hero_bg_dark.png') center center / cover no-repeat fixed;
    text-align: center;
    overflow: hidden;
}

[data-theme="light"] .apps-hero {
    background: url('apps_hero_bg_light.png') center center / cover no-repeat fixed;
}

.apps-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2,6,23,0.4); /* Very light overlay to let the image shine */
    z-index: 1;
    pointer-events: none;
}

[data-theme="light"] .apps-hero .hero-overlay {
    background: rgba(255,255,255,0.4);
}

.apps-hero .wrapper {
    position: relative;
    z-index: 2;
}



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    margin-bottom: 1.25rem;
    background: linear-gradient(100deg, var(--text-main) 30%, var(--primary) 65%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* CRITICAL: prevent overflow on small screens */
    overflow-wrap: break-word;
    word-break: break-word;
}

.hero-desc {
    font-size: clamp(0.95rem, 2.2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 620px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* ---------- SECTION UTILITIES ---------- */
.section-pad {
    padding-block: 6rem;
}
.section-dark {
    background: var(--bg-surface);
}
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-top: 0.5rem;
}

/* ---------- TWO-COL LAYOUT ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.col-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1.25rem;
    margin-top: 0.5rem;
}

.body-text {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.col-img img {
    width: 100%;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}

/* Features grid inside About */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}

.feat i {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.feat h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.feat p { font-size: 0.85rem; color: var(--text-muted); }


/* ---------- PROJECT CARDS ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
    backdrop-filter: blur(10px);
}
.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.card-img {
    height: 200px;
    overflow: hidden;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.card:hover .card-img img { transform: scale(1.08); }

.card-body {
    padding: 1.4rem;
}

.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    background: rgba(59,130,246,0.12);
    color: var(--primary);
    border: 1px solid rgba(59,130,246,0.2);
    margin-bottom: 0.85rem;
}

.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
}

.card-body > p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* ---------- APP SHOWCASE SECTIONS ---------- */
.app-section {
    padding-block: 8rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.app-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.app-section:nth-child(even) {
    background: rgba(255,255,255,0.01);
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 6rem;
    align-items: center;
}

.app-section:nth-child(even) .app-grid {
    grid-template-columns: 1.1fr 1fr;
}

.app-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.app-feature-item {
    background: var(--bg-surface);
    padding: 1.25rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-feature-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(59, 130, 246, 0.03);
}

.app-feature-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.app-feature-item h4 {
    font-size: 1rem;
    margin: 0;
}

.app-feature-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}
.app-slider-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 40px;
    padding: 10px;
    background: var(--bg-surface);
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5), 
                inset 0 0 0 1px var(--border-color);
    border: 1px solid var(--border-color);
}

.app-slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent 50%);
    pointer-events: none;
    border-radius: 40px;
}

.app-slider-inner {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 9 / 19;
    background: #000;
}

.app-slider {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
}
.app-slider:active { cursor: grabbing; }
.app-slider::-webkit-scrollbar { display: none; }

.app-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
}

.app-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Google Play Badge Button */
.play-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #000;
    color: #fff;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s var(--ease);
    text-decoration: none;
}

.play-badge:hover {
    background: #000;
    border-color: #6366f1;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.25);
}

.play-badge i { font-size: 1.8rem; }
.play-badge .badge-text { display: flex; flex-direction: column; line-height: 1; }
.play-badge .badge-text span:first-child { font-size: 0.65rem; text-transform: uppercase; margin-bottom: 2px; opacity: 0.8; }
.play-badge .badge-text span:last-child { font-size: 1.1rem; font-weight: 700; }

.app-feature-item {
    background: rgba(255,255,255,0.02);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--ease);
}
.app-feature-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(59,130,246,0.3);
    transform: translateY(-5px);
}

/* ---------- CONTACT ---------- */

.app-feature-item {
    display: flex;
    gap: 0.75rem;
}

.app-feature-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.app-feature-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.app-feature-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ---------- CONTACT ---------- */
.contact-layout {
    gap: 3.5rem;
    align-items: start;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(59,130,246,0.1);
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    color: var(--primary);
}

.contact-row strong {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
}
.contact-row p,
.contact-row a {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.contact-row a:hover { color: var(--primary); }

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.map-box {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 100%;
    min-height: 420px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.map-box iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: none;
    display: block;
}

/* ---------- FOOTER ---------- */
footer {
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
    padding-block: 4rem 2rem;
    overflow: hidden;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1.25rem;
    max-width: 380px;
    word-break: break-word; /* Prevents overflow */
}

.socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.75rem;
}
.socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    transition: all 0.3s var(--ease);
}
.socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}
.footer-col ul { display: flex; flex-direction: column; gap: 1rem; }
.footer-col a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color 0.25s, padding-left 0.25s;
    word-break: break-word; /* Prevents long URLs from overflowing */
}
.footer-col a:hover { color: var(--primary); padding-left: 5px; }

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE — pure mobile-first breakpoints
   ============================================= */

/* ---- tablet (≤ 1024px) ---- */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    .two-col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand { grid-column: 1 / -1; }
}

/* ---- mobile (≤ 768px) ---- */
@media (max-width: 768px) {

    /* Fix global overflow — strongest possible rules */
    html { overflow-x: clip !important; }
    body { overflow-x: clip !important; max-width: 100vw !important; }
    .wrapper { padding-inline: 1.1rem; }

    /* --- Nav overlay --- */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-body);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s var(--ease);
        z-index: 1000000;
    }
    .nav-menu.open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
    }
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .nav-menu a { 
        font-size: 1.5rem; 
        color: var(--text-main); 
        font-weight: 700;
    }
    .hamburger { display: flex; }
    .nav-cta { 
        font-size: 1.05rem !important;
        padding: 0.8rem 2.4rem !important;
        margin-top: 1rem;
        box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    }

    /* --- App Showcase --- */
    .app-section { padding-block: 3.5rem; }
    .app-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }
    .app-section:nth-child(even) .col-img { order: -1; }
    
    .app-slider-container {
        max-width: 240px;
        border-width: 4px;
    }

    .app-features-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Map full height on mobile */
    .map-box,
    .map-box iframe { min-height: 300px; }

    /* Contact stacks */
    .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
    .contact-list { padding: 1.4rem; }

    /* lang button text hide on very small */
    .lang-label { display: none; }
    .lang-btn { padding: 0.45rem 0.65rem; }

    /* --- Hero --- */
    .hero {
        padding-top: 80px;
        text-align: center;
    }
    .hero-content { max-width: 100%; }
    .hero-content h1 { font-size: clamp(1.8rem, 8.5vw, 2.5rem); }
    .hero-desc { max-width: 100%; font-size: 0.95rem; }
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

    /* --- Sections --- */
    .section-pad { padding-block: 4rem; }

    /* --- Features --- */
    .features-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    /* --- Cards --- */
    .cards-grid { grid-template-columns: 1fr; }

    /* --- Contact --- */
    .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
    .contact-list { padding: 1.4rem; }
    .map-box { min-height: 280px; }
    .map-box iframe { min-height: 280px; }

    /* --- Footer --- */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-brand { grid-column: auto; }
    .footer-brand p { margin-inline: auto; }
    .socials { justify-content: center; }
    .footer-col a:hover { padding-left: 0; }
}

/* ---- small mobile (≤ 420px) ---- */
@media (max-width: 420px) {
    .wrapper { padding-inline: 1rem; }
    .logo img { height: 32px; }
    .logo span { font-size: 1.2rem; }
    .hero-content h1 { font-size: 1.75rem; }
    .card-img { height: 170px; }
    .contact-list { padding: 1.1rem; }
    .contact-row { flex-direction: column; gap: 0.75rem; }
}
