/* Top Info Bar */
.topbar {
    height: 40px;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: relative;
    z-index: 102;
}

.topbar__left {
    font-size: 12px;
    color: #ffffff !important;
    opacity: 0.9;
    font-weight: 500;
}

.topbar__right {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-right: 4px;
}

.ico {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    padding: 2px;
}

.ico:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* WhatsApp - Verde oficial */
.ico--whatsapp {
    color: #25D366 !important;
    background: rgba(37, 211, 102, 0.1);
}

.ico--whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
}

/* Facebook - Albastru oficial */
.ico--fb {
    color: #1877F2 !important;
    background: rgba(24, 119, 242, 0.1);
}

.ico--fb:hover {
    background: rgba(24, 119, 242, 0.2);
    box-shadow: 0 0 10px rgba(24, 119, 242, 0.3);
}

.ico svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    /* Hide entire topbar on mobile */
    .topbar {
        display: none !important;
    }
}

/* Old animation system replaced by RK9 system below */

/* Old button and text effects replaced by RK9 system */

/* Reduced motion handled by RK9 system below */

/* Font loading optimization - fonts are loaded via Google Fonts in HTML */

/* Reserve Heights to Prevent Layout Shift */
.hero-title {
    min-height: 3.5rem;
}

.hero-subtitle {
    min-height: 1.5rem;
}

.cta-button {
    min-height: 3rem;
}/* 
 --- PREMIUM HERO PRESENTATION ANIMATIONS --- 
 Fade-in + Slide-up + Blur effects cu staggered timing
*/

/* Base cu overlay pentru contrast maxim */
.hero { 
    position: relative; 
    z-index: 1;
    min-height: 100vh; /* Ensure full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile hero positioning - move content higher */
@media (max-width: 768px) {
    .hero {
        align-items: flex-start !important; /* Move content to top instead of center */
        padding-top: 15vh !important; /* Start content 15% from top */
        padding-bottom: 10vh !important; /* Space at bottom */
    }
}

/* ELIMINAT - overlay-ul hero care crea dunga neagră sub video */
.hero::before {
    display: none !important; /* Eliminat complet pentru fundal unitar */
}

.hero-inner { 
    position: relative;
    z-index: 2;
    text-align: center; 
}

/* Mobile hero-inner positioning */
@media (max-width: 768px) {
    .hero-inner {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        margin: 0 auto !important;
    }
}

/* SOLUȚIE SIMPLĂ ȘI CURATĂ */

/* State inițiale - elementele încep invizibile */
.reveal-line,
.reveal-fade,
.reveal-cta {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(7px);
}

/* Animații simple și eficiente */
@keyframes heroFadeUp {
    to { 
        opacity: 1; 
        transform: translateY(0); 
        filter: blur(0); 
    }
}

@keyframes heroPop {
    0%   { 
        opacity: 0; 
        transform: translateY(18px) scale(0.96); 
        filter: blur(7px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1.0); 
        filter: blur(0); 
    }
}

/* Timing EXACT când se activează animația */
.anim-in .reveal-line {
    animation: heroFadeUp 0.8s cubic-bezier(.22,.61,.36,1) forwards;
}

.anim-in .reveal-line:nth-child(1){ animation-delay: 0.20s; }
.anim-in .reveal-line:nth-child(2){ animation-delay: 0.35s; }
.anim-in .reveal-line:nth-child(3){ animation-delay: 0.50s; }

.anim-in .reveal-fade { 
    animation: heroFadeUp 0.8s cubic-bezier(.22,.61,.36,1) 0.70s forwards; 
}

.anim-in .reveal-cta  { 
    animation: heroPop 0.8s cubic-bezier(.22,.61,.36,1) 0.90s forwards; 
}

/* Hover subtil la buton, păstrând stilul tău */
.hero-cta { 
    display: inline-block; 
    transition: transform .2s ease, box-shadow .2s ease; 
}

.hero-cta:hover { 
    transform: translateY(-1px); 
    box-shadow: 0 8px 22px -10px rgba(0,0,0,.35); 
}

/* Hero styling - TEXT FOARTE ACCENTUAT ȘI VIZIBIL */
.hero-title {
    font-family: 'Orbitron', monospace;
    font-weight: 900; /* Foarte bold */
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #FFFFFF; /* Alb pur 100% */
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.5),
        0 4px 8px rgba(0,0,0,0.3); /* Much lighter shadow for readability only */
    filter: 
        drop-shadow(0 2px 4px rgba(0,0,0,0.4));

}

.hero-title .reveal-line {
    display: block;
    margin-bottom: 0.2em;
}

.hero-sub {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.4;
    margin-bottom: 2rem;
    color: #FFFFFF; /* Alb pur 100% */
    font-weight: 700; /* Foarte bold pentru subtitlu */
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.4),
        0 4px 8px rgba(0,0,0,0.2); /* Much lighter shadow for readability only */
    filter: 
        drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    font-family: 'Inter', sans-serif;
    font-weight: 700; /* Mai bold */
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background: #FFFFFF; /* Alb pur pentru contrast maxim */
    color: #000000; /* Negru pentru contrast */
    text-decoration: none;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 
        0 0 20px rgba(255,255,255,0.3),
        0 4px 15px rgba(0,0,0,0.5); /* Shadow puternic */
    border: 2px solid rgba(255,255,255,0.2); /* Border subtil */
}

/* Fallback simplu - după 2s dacă nu s-a activat */
.hero-inner:not(.anim-in) .reveal-line,
.hero-inner:not(.anim-in) .reveal-fade,
.hero-inner:not(.anim-in) .reveal-cta {
    animation: heroFadeUp 0.8s cubic-bezier(.22,.61,.36,1) forwards;
    animation-delay: 2s;
}

/* Respectă preferința utilizatorilor */
@media (prefers-reduced-motion: reduce){
    .reveal-line, 
    .reveal-fade, 
    .reveal-cta { 
        opacity: 1 !important; 
        transform: none !important; 
        filter: none !important; 
        animation: none !important; 
    }
}

/* REGULĂ DE SIGURANȚĂ - textul devine vizibil după 3s oricum */
.reveal-line,
.reveal-fade,
.reveal-cta {
    animation: heroFadeUp 0.5s ease forwards;
    animation-delay: 3s;
}
/* Header Container - True full-bleed region */
.header-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

/* Video Background - ACOPERĂ COMPLET HEADER-UL FĂRĂ DUNGĂ */
.header-container .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%; /* Mai înalt pentru a acoperi dunga */
    object-fit: cover;
    object-position: center top; /* Poziționat sus */
    z-index: -1;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    transform: scale(1.1); /* Scalare pentru acoperire completă */
}

/* Main Header Bar - Single black bar for all content */
.header-main-bar {
    position: relative;
    z-index: 101;
    background: #000000;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

/* Logo Container - Now for horizontal layout */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Company Text - Two line format */
.company-text {
    display: flex;
    flex-direction: column;
    color: white;
}

.company-text .main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
    color: #ffffff;
}

.company-text .subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.2;
    color: #ffffff;
}

.logo-text-link {
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-text-link:hover .main-title,
.logo-text-link:hover .subtitle {
    color: #bfc4ca;
}

/* Desktop Navigation - Right side of black bar */
.desktop-nav {
    display: none; /* Hidden on mobile, shown on desktop */
}

.desktop-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    align-items: center;
}

/* Mobile Navigation - Below black bar, horizontal line */
.mobile-nav {
    display: none; /* Hidden on desktop, shown on mobile */
    background: #000000;
    padding: 8px 20px;
    position: relative;
    z-index: 100;
}

.mobile-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: hidden;
}

.logo {
    height: 60px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.company-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.company-tagline {
    font-size: 0.75rem;
    color: #bfc4ca;
    font-weight: 400;
    line-height: 1;
}

/* Desktop Menu - Right side of header */
.nav-menu-desktop {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

/* Mobile Menu - Centered in blur band with responsive spacing */
.nav-menu-mobile {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Legacy nav-menu class for backward compatibility */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Desktop menu styling */
.desktop-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.desktop-menu a:hover {
    color: #bfc4ca;
    background: rgba(255, 255, 255, 0.1);
}

.desktop-menu a[href="join-us.html"] {
    background: linear-gradient(135deg, #bfc4ca 0%, #9ea3a8 100%);
    color: #0b0b0b;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
}

.desktop-menu a[href="join-us.html"]:hover {
    background: linear-gradient(135deg, #ffffff 0%, #bfc4ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(191, 196, 202, 0.3);
}

/* Mobile menu styling */
.mobile-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 6px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.mobile-menu a:hover {
    color: #bfc4ca;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu a[href="join-us.html"] {
    background: linear-gradient(135deg, #bfc4ca 0%, #9ea3a8 100%);
    color: #0b0b0b;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.mobile-menu a[href="join-us.html"]:hover {
    background: linear-gradient(135deg, #ffffff 0%, #bfc4ca 100%);
}

/* Remove nav-toggle button - not needed for horizontal mobile menu */
.nav-toggle {
    display: none !important;
}
}

/* Mobile Navigation Toggle - Hidden as per requirements */
.nav-toggle {
    display: none !important;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Desktop Styles - Show desktop menu in black bar */
@media (min-width: 769px) {
    .desktop-nav {
        display: block !important;
    }
    
    .mobile-nav {
        display: none !important;
    }
    
    .header-main-bar {
        padding: 12px 20px;
    }
}

/* Mobile Styles - Show mobile menu below black bar */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-nav {
        display: block !important;
    }
    
    .header-main-bar {
        padding: 10px 15px;
        justify-content: flex-start; /* Logo only on mobile */
    }
    
    .logo {
        height: 45px;
    }
    
    .company-name {
        font-size: 0.9rem;
    }
    
    .company-tagline {
        font-size: 0.65rem;
    }
    
    .mobile-menu {
        gap: 10px;
    }
    
    .mobile-menu a {
        font-size: 0.8rem;
        padding: 5px 6px;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 0 12px;
    }
    
    .topbar__left {
        font-size: 11px;
    }
    
    .ico {
        width: 18px;
        height: 18px;
    }
    
    .logo {
        height: 40px;
    }
    
    .company-name {
        font-size: 0.8rem;
    }
    
    .company-tagline {
        font-size: 0.6rem;
    }
    
    .mobile-nav {
        padding: 6px 15px;
    }
    
    .mobile-menu {
        gap: 8px;
    }
    
    .mobile-menu a {
        font-size: 0.75rem;
        padding: 4px 5px;
    }
}

/* Extra small screens - ensure all buttons fit */
@media (max-width: 360px) {
    .logo {
        height: 35px;
    }
    
    .company-name {
        font-size: 0.75rem;
    }
    
    .company-tagline {
        font-size: 0.55rem;
    }
    
    .mobile-nav {
        padding: 5px 10px;
    }
    
    .mobile-menu {
        gap: 5px;
    }
    
    .mobile-menu a {
        font-size: 0.7rem;
        padding: 3px 4px;
    }
}
/* Mobile/tablet height adjustment */
@media (max-width: 768px) {
    .header-container {
        min-height: 70vh;
    }
}

/* Ensure no body margins affect video */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* FORCE NO HORIZONTAL SCROLL ON MOBILE */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .header-container,
    .navbar,
    .nav-menu {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
}

/* Remove any container restrictions for header */
.header-container * {
    box-sizing: border-box;
}/* Kil
l any padding/border/radius in hero stack */
.hero,
.hero-inner,
.hero-media,
.hero-frame {
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

/* Disable global .container limits inside the hero */
.hero .container,
.header-container .container {
    max-width: none;
    padding: 0;
    margin: 0;
    width: 100%;
}/* A
GGRESSIVE VIDEO FULLSCREEN OVERRIDE */
video.video-background,
.video-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: -1 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    transform: none !important;
    clip: none !important;
    clip-path: none !important;
}

/* Ensure body doesn't restrict video */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Remove any container restrictions that could affect video */
.header-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    max-width: none;
}

/* ---------- VIDEO DOAR ÎN HEADER - SOLUȚIE PRECISĂ ---------- */
/* Video-ul va acoperi header-ul fără benzi negre, dar nu tot site-ul */

.header-container .video-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: -1 !important;
    transform: scale(1.05) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}
/* iO
S Safari specific fixes for header layout */
@supports (-webkit-touch-callout: none) {
    .header-top-bar {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .navbar {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .nav-menu a {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        touch-action: manipulation;
    }
    
    .logo-container {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Additional mobile fixes for header positioning */
@media (max-width: 768px) {
    .nav-menu a {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .navbar {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}/
* iOS-specific hero button fixes */
@supports (-webkit-touch-callout: none) {
    .hero-ctas {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .hero-ctas .cta-button {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        touch-action: manipulation;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Ensure hero buttons are always visible on mobile */
@media (max-width: 768px) {
    .hero-ctas {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important; /* Compact spacing between buttons */
        align-items: center !important;
        justify-content: center !important;
        z-index: 60 !important;
        margin: 15px auto 20px auto !important; /* Reduced margins for more space */
        width: 100% !important;
        max-width: 300px !important;
        padding: 0 20px !important; /* Prevent edge clipping */
        position: relative !important;
    }
    
    .hero-ctas .cta-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 44px !important; /* Slightly smaller but still touchable */
        width: 100% !important;
        max-width: 260px !important; /* Slightly narrower */
        padding: 12px 18px !important; /* More compact padding */
        font-size: 15px !important; /* Slightly smaller font */
        font-weight: 700 !important;
        text-decoration: none !important;
        border-radius: 6px !important; /* Smaller border radius */
        transition: all 0.3s ease !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        margin: 0 !important;
        position: relative !important;
        z-index: 70 !important; /* Higher z-index to ensure visibility */
        overflow: visible !important;
    }
    
    .get-protection-hero {
        background: rgba(255, 255, 255, 0.95) !important;
        color: #0b0b0b !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .join-us-hero {
        background: rgba(191, 196, 202, 0.95) !important;
        color: #0b0b0b !important;
        border: 2px solid rgba(191, 196, 202, 0.2) !important;
    }
    
    .hero-ctas .cta-button:active {
        transform: translateY(1px) !important;
        opacity: 0.9 !important;
    }
}/*
 Android Chrome specific optimizations */
@media screen and (max-width: 768px) {
    /* Ensure header works well on Android Chrome */
    .header-top-bar {
        position: relative;
        z-index: 101;
        will-change: transform;
        contain: layout style;
    }
    
    .navbar {
        position: relative;
        z-index: 100;
        will-change: transform;
        contain: layout style;
        /* Ensure blur works on Android */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .nav-menu {
        /* Optimize for Android touch */
        touch-action: manipulation;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu a {
        /* Android-friendly touch targets */
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        /* Prevent text selection on Android */
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        /* Optimize touch response */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .logo-container {
        /* Prevent layout shifts on Android */
        will-change: transform;
        contain: layout;
    }
    
    .company-text-link {
        /* Prevent text selection */
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        /* Optimize for Android rendering */
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }
}

/* Android-specific viewport fixes */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .header-top-bar,
    .navbar {
        /* Ensure header doesn't get cut off on Android */
        min-height: auto;
        height: auto;
    }
    
    .nav-menu {
        /* Ensure menu fits on Android screens */
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
}

/* High DPI Android displays */
@media screen and (max-width: 768px) and (min-resolution: 2dppx) {
    .logo {
        /* Optimize logo for high DPI Android screens */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .navbar {
        /* Ensure blur looks good on high DPI */
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}/
* Android-specific hero button optimizations */
@media screen and (max-width: 768px) {
    .hero-ctas {
        /* Ensure buttons are visible on Android */
        position: relative;
        z-index: 30;
        margin-top: 2rem;
        padding: 0 20px;
        /* Optimize for Android rendering */
        will-change: transform;
        contain: layout style;
    }
    
    .hero-ctas .cta-button {
        /* Android-optimized touch targets */
        min-height: 48px;
        min-width: 200px;
        padding: 16px 24px;
        margin: 8px 0;
        /* Prevent text selection on Android */
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        /* Optimize touch response */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        /* Ensure buttons render well on Android */
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        /* Improve text rendering on Android */
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }
    
    .hero-ctas .cta-button:active {
        /* Android-friendly active state */
        transform: scale(0.98) translateY(1px);
        opacity: 0.9;
        transition: all 0.1s ease;
    }
    
    .hero-ctas .cta-button:focus {
        /* Android accessibility */
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: 2px;
    }
}

/* Android Chrome specific button fixes */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
    .hero-ctas .cta-button {
        /* Ensure buttons don't get clipped on Android */
        box-sizing: border-box;
        overflow: visible;
        /* Optimize for Android Chrome rendering */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

/* Android landscape orientation */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hero-ctas {
        /* Adjust for Android landscape */
        flex-direction: row;
        gap: 16px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-ctas .cta-button {
        /* Smaller buttons for landscape */
        min-width: 160px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Mobile hero section height adjustments */
@media (max-width: 768px) {
    .hero-title {
        margin-bottom: 15px !important; /* Reduce space after title */
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important; /* Smaller title on mobile */
    }
    
    .hero-sub {
        margin-bottom: 20px !important; /* Reduce space after subtitle */
        font-size: clamp(1rem, 3vw, 1.2rem) !important; /* Smaller subtitle */
    }
}

/* Android-specific viewport height fixes */
@media screen and (max-width: 768px) and (max-height: 600px) {
    .hero {
        min-height: 100vh !important;
        padding-bottom: 60px !important; /* More space on short screens */
    }
    
    .hero-ctas {
        /* Ensure buttons are visible on short Android screens */
        margin-top: 1rem;
        margin-bottom: 2rem !important;
    }
    
    .hero-ctas .cta-button {
        /* Compact buttons for short screens */
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
}/* Fina
l cross-device validation and desktop preservation */

/* Ensure desktop layout remains unchanged */
@media (min-width: 769px) {
    .header-top-bar {
        /* Desktop header layout */
        padding: 10px 20px;
    }
    
    .navbar {
        /* Desktop navigation */
        padding: 12px 0 !important;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(8px);
    }
    
    .nav-menu {
        /* Desktop menu layout */
        gap: 30px;
        flex-direction: row;
        justify-content: center;
    }
    
    .nav-menu a {
        /* Desktop link styling */
        font-size: 0.95rem;
        padding: 8px 0;
    }
    
    .company-text-link {
        /* Desktop company text */
        font-size: 18px;
    }
    
    .logo {
        /* Desktop logo size */
        height: 60px;
    }
}

/* Cross-browser compatibility fixes */
@supports not (backdrop-filter: blur(8px)) {
    .navbar {
        /* Fallback for browsers without backdrop-filter support */
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Ensure all changes work together */
@media (max-width: 768px) {
    /* Final mobile validation */
    .header-container {
        /* Ensure header container works with new structure */
        position: relative;
        z-index: 100;
    }
    
    .header-top-bar {
        /* Ensure top bar is properly positioned */
        position: relative;
        z-index: 101;
        background: #000000;
        display: flex;
        align-items: center;
    }
    
    .navbar {
        /* Ensure navbar is properly positioned below */
        position: relative;
        z-index: 100;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .nav-menu {
        /* Ensure menu is always visible and centered */
        display: flex !important;
        position: static !important;
        background: transparent !important;
        flex-direction: row !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .nav-toggle {
        /* Ensure hamburger menu stays hidden */
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Performance optimizations for all devices */
.header-top-bar,
.navbar,
.nav-menu,
.hero-ctas {
    /* Optimize rendering performance */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .nav-menu a,
    .hero-ctas .cta-button {
        transition: none !important;
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar {
        background: rgba(0, 0, 0, 0.9);
        border-bottom: 1px solid #ffffff;
    }
    
    .nav-menu a {
        color: #ffffff;
    }
    
    .hero-ctas .cta-button {
        border: 2px solid #ffffff;
    }
}