/* Font Face Declarations */
@font-face {
    font-family: 'fccTYPO';
    src: url('fonts/fccTYPO-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'fccTYPO';
    src: url('fonts/fccTYPO-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'fccTYPO';
    src: url('fonts/fccTYPO-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'fccTYPO';
    src: url('fonts/fccTYPO-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'fccTYPO';
    src: url('fonts/fccTYPO-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'fccTYPO';
    src: url('fonts/fccTYPO-UltraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'fccTYPO';
    src: url('fonts/fccTYPO-UltraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'fccTYPO';
    src: url('fonts/fccTYPO-SuperBlack.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'fccTYPO';
    src: url('fonts/fccTYPO-SuperThin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip; /* Modern CSS - prevents horizontal scroll without breaking sticky */
}

body {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip; /* Modern CSS - prevents horizontal scroll without breaking sticky */
}

main {
    width: 100%;
    max-width: 100vw;
}

/* Ensure all sections are constrained */
section {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

:root {
    --primary-color: #C60824;
    --primary-hover: #D60928;
    --red: #C60824;
    --dark-grey: #525252;
    --light-grey: #A0A0A0;
    --text-primary: #ffffff;
    --text-secondary: #A0A0A0;
    --text-tertiary: #525252;
    --text-muted: #525252;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --white: #ffffff;
    --black: #000000;
    --accent-red: #C60824;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* AYRA Colors - Using Born4Flight red theme */
    --ayra-primary: #C60824; /* Born4Flight red */
    --ayra-primary-dark: #A0071E;
    --ayra-primary-light: #E6092A;
    --ayra-bg: rgba(0, 0, 0, 0.85);
    --ayra-surface: rgba(10, 10, 10, 0.75); /* dark-surface/75 */
    --ayra-border: rgba(198, 8, 36, 0.3); /* border-primary/30 with red */
}

body {
    font-family: 'fccTYPO', monospace, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    /* Touch-friendly improvements */
    -webkit-tap-highlight-color: rgba(198, 8, 36, 0.2);
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

.container {
    max-width: min(75rem, 100%);
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 4rem);
    box-sizing: border-box;
}


/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(2vh);
    -webkit-backdrop-filter: blur(2vh);
    transition: var(--transition);
    border-bottom: 0.15vh solid rgba(198, 8, 36, 0.3);
    box-shadow: 0 0.8vh 3.2vh rgba(0, 0, 0, 0.4);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(2.5vh);
    -webkit-backdrop-filter: blur(2.5vh);
    box-shadow: 
        0 0.8vh 3.2vh rgba(0, 0, 0, 0.4),
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.2),
        0 0 6vh rgba(198, 8, 36, 0.1);
}

.nav-container {
    max-width: min(75rem, 100%);
    width: 100%;
    margin: 0 auto;
    padding: 2.25rem 1rem;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    position: absolute;
    right: 15%;
    transform: translateX(0);
}

.language-switcher {
    position: absolute;
    right: 5%;
    display: flex;
    align-items: center;
    z-index: 1002;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(198, 8, 36, 0.1);
    border: 0.15vh solid rgba(198, 8, 36, 0.3);
    color: var(--white);
    padding: 0.5rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'fccTYPO', monospace, sans-serif;
    backdrop-filter: blur(1vh);
    -webkit-backdrop-filter: blur(1vh);
}

.lang-btn:hover {
    border-color: rgba(198, 8, 36, 0.6);
    background: rgba(198, 8, 36, 0.2);
    transform: translateY(-0.1rem);
    box-shadow: 0 0.2vh 0.8vh rgba(198, 8, 36, 0.2);
}

.lang-btn:active {
    transform: translateY(0);
}

.lang-flag {
    display: none; /* Flags hidden */
}

.lang-current {
    font-weight: 600;
    min-width: 1.5rem;
    text-align: left;
}

.lang-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color);
}

.language-switcher.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 6rem;
    background: rgba(45, 47, 53, 0.95);
    backdrop-filter: blur(2vh);
    -webkit-backdrop-filter: blur(2vh);
    border: 0.15vh solid rgba(198, 8, 36, 0.3);
    border-radius: 0.5rem;
    box-shadow: 
        0 0.8vh 3.2vh rgba(0, 0, 0, 0.4),
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
}

.language-switcher.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'fccTYPO', monospace, sans-serif;
    text-align: left;
    justify-content: center;
}

.lang-option:first-child {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.lang-option:last-child {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.lang-option:hover {
    background: rgba(198, 8, 36, 0.15);
    color: var(--primary-color);
}

.lang-option.active {
    background: rgba(198, 8, 36, 0.2);
    color: var(--primary-color);
}

.lang-option .lang-flag {
    display: none; /* Flags hidden */
}

.lang-code {
    font-weight: 600;
    min-width: 2rem;
    color: var(--primary-color);
}

.nav-logo {
    display: flex;
    align-items: center;
    position: absolute;
    left: 5%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-svg {
    width: 3.5rem;
    height: 3.5rem;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-svg {
    transform: rotate(5deg) scale(1.1);
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-red);
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.logo-link:hover .logo-text {
    color: var(--primary-hover);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.0625rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.125rem;
    background: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 0.5rem rgba(198, 8, 36, 0.5);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-0.125rem);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    text-shadow: 0 0 0.5rem rgba(198, 8, 36, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    position: absolute;
    right: 15%;
    /* Touch-friendly: larger tap target */
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    padding: 8rem clamp(1rem, 2vw, 2rem) calc(4rem + clamp(2vw, 4vw, 8vw));
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 0;
    overflow: hidden;
    background: #000000;
    cursor: none;
    box-sizing: border-box;
}

.cursor-gradient {
    position: absolute;
    width: min(37.5rem, 50vw);
    height: min(37.5rem, 50vw);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(198, 8, 36, 0.4) 0%,
        rgba(198, 8, 36, 0.3) 30%,
        rgba(198, 8, 36, 0.2) 50%,
        transparent 70%
    );
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.15s ease;
    filter: blur(3.75rem);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    z-index: 1;
}

@keyframes moveGradient1 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10%, 15%) rotate(90deg);
    }
    50% {
        transform: translate(20%, 10%) rotate(180deg);
    }
    75% {
        transform: translate(10%, -5%) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes moveGradient2 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-15%, -10%) rotate(-90deg);
    }
    50% {
        transform: translate(-20%, -15%) rotate(-180deg);
    }
    75% {
        transform: translate(-10%, -5%) rotate(-270deg);
    }
    100% {
        transform: translate(0, 0) rotate(-360deg);
    }
}

@keyframes breathe1 {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@keyframes breathe2 {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.12);
    }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: clamp(20rem, 31.25vw, 31.25rem);
    height: clamp(20rem, 31.25vw, 31.25rem);
    background: var(--gradient-1);
    top: clamp(-12.5rem, -12.5vw, -12.5rem);
    left: clamp(-12.5rem, -12.5vw, -12.5rem);
    animation-delay: 0s;
}

.orb-2 {
    width: clamp(16rem, 25vw, 25rem);
    height: clamp(16rem, 25vw, 25rem);
    background: var(--gradient-2);
    bottom: clamp(-9.375rem, -9.375vw, -9.375rem);
    right: clamp(-9.375rem, -9.375vw, -9.375rem);
    animation-delay: 5s;
}

.orb-3 {
    width: clamp(14rem, 21.875vw, 21.875rem);
    height: clamp(14rem, 21.875vw, 21.875rem);
    background: var(--gradient-3);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Background drones */
.bg-drone {
    position: absolute;
    width: clamp(5rem, 7.5vw, 7.5rem);
    height: clamp(5rem, 7.5vw, 7.5rem);
    opacity: 0.3;
    z-index: 0;
}

.bg-drone-1 {
    top: 10%;
    left: 10%;
}

.bg-drone-2 {
    top: 60%;
    right: 15%;
}

.bg-drone-3 {
    bottom: 15%;
    left: 20%;
}

.bg-drone-svg {
    width: 100%;
    height: 100%;
}

.bg-propeller {
    position: absolute;
    width: 20%;
    height: 20%;
}

.bg-drone .bg-prop-1 {
    top: 29.29%;
    left: 70.71%;
    transform: translate(-50%, -50%);
    animation: bgSpin1 0.6s linear infinite;
}

.bg-drone .bg-prop-2 {
    top: 29.29%;
    left: 29.29%;
    transform: translate(-50%, -50%);
    animation: bgSpin2 0.6s linear infinite;
}

.bg-drone .bg-prop-3 {
    top: 70.71%;
    left: 29.29%;
    transform: translate(-50%, -50%);
    animation: bgSpin3 0.6s linear infinite;
}

.bg-drone .bg-prop-4 {
    top: 70.71%;
    left: 70.71%;
    transform: translate(-50%, -50%);
    animation: bgSpin4 0.6s linear infinite;
}

.bg-propeller::before,
.bg-propeller::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
    background: rgba(198, 8, 36, 0.3);
    border-radius: 1px;
}

.bg-propeller::before {
    width: 50%;
    height: 12%;
    transform: translate(-50%, -50%);
}

.bg-propeller::after {
    width: 12%;
    height: 50%;
    transform: translate(-50%, -50%);
}

@keyframes bgSpin1 {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes bgSpin2 {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes bgSpin3 {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes bgSpin4 {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: min(75rem, 100%);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 0 clamp(1rem, 3vw, 4rem);
    box-sizing: border-box;
}

.hero-text {
    color: var(--white);
    overflow: visible;
    min-height: fit-content;
    padding: 1rem 0;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    position: relative;
    overflow: visible;
    word-wrap: break-word;
    white-space: normal;
    padding: 0.5rem 0;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2rem;
    width: 0.25rem;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), transparent);
    opacity: 0;
    animation: slideInLeft 1s ease-out 0.5s forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 0.6;
        left: -1rem;
    }
}

.title-line {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    overflow: visible;
    word-wrap: break-word;
    white-space: normal;
    padding: 0.125rem 0;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.5rem 0;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    padding: 0.5rem 0;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 42rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
    margin-top: 0;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

.drone-container {
    position: relative;
    width: 100%;
    max-width: min(34.375rem, 45vw);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: droneFloat 6s infinite ease-in-out;
}

.drone-svg {
    position: absolute;
    width: 90%;
    height: 90%;
    top: 5%;
    left: 5%;
    z-index: 1;
}

@keyframes droneFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-0.9375rem);
    }
}

/* Propellers positioned at arm ends (45° angles) - perfectly aligned with motor mounts */
.drone-propeller {
    position: absolute;
    width: 35% !important;
    height: 35% !important;
    min-width: 35%;
    min-height: 35%;
    max-width: 35%;
    max-height: 35%;
    z-index: 2;
    transform: translateZ(0); /* Force hardware acceleration for Safari */
    -webkit-transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Force Safari to recalculate */
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Propeller positions matching motor mount coordinates exactly */
/* SVG is 90% width/height, positioned at 5% from top/left */
/* Motor mounts in SVG at: (141.42, 58.58), (58.58, 58.58), (58.58, 141.42), (141.42, 141.42) */
/* In 200x200 viewBox: (70.71%, 29.29%), (29.29%, 29.29%), (29.29%, 70.71%), (70.71%, 70.71%) */
/* Position = 5% (offset) + (SVG coordinate / 200 * 90%) */
/* Top-right (45°) - motor mount at (141.42, 58.58) */
.prop-1 {
    top: calc(5% + 58.58 / 200 * 90%);
    left: calc(5% + 141.42 / 200 * 90%);
    transform: translate(-50%, -50%);
}

/* Top-left (135°) - motor mount at (58.58, 58.58) */
.prop-2 {
    top: calc(5% + 58.58 / 200 * 90%);
    left: calc(5% + 58.58 / 200 * 90%);
    transform: translate(-50%, -50%);
}

/* Bottom-left (225°) - motor mount at (58.58, 141.42) */
.prop-3 {
    top: calc(5% + 141.42 / 200 * 90%);
    left: calc(5% + 58.58 / 200 * 90%);
    transform: translate(-50%, -50%);
}

/* Bottom-right (315°) - motor mount at (141.42, 141.42) */
.prop-4 {
    top: calc(5% + 141.42 / 200 * 90%);
    left: calc(5% + 141.42 / 200 * 90%);
    transform: translate(-50%, -50%);
}

/* Motor mount at center of propeller - matches SVG inner motor mount (r=3 in 200px viewBox) */
.motor-mount {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12.5%; /* 3px radius in 200px viewBox = 6px diameter, relative to 24% container = 12.5% */
    height: 12.5%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 26, 0.9);
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 3px rgba(198, 8, 36, 0.4);
    border: 0.15vh solid rgba(198, 8, 36, 0.3);
}

/* Propeller blades - cross shape (X pattern) with more realistic look */
.propeller-blade {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
    -webkit-transform-origin: center;
    background: rgba(198, 8, 36, 0.7);
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(198, 8, 36, 0.4);
    transform: translateZ(0); /* Force hardware acceleration for Safari */
    -webkit-transform: translateZ(0);
    will-change: transform; /* Optimize for animations */
}

.blade-1 {
    width: 70%;
    height: 10%;
    min-width: 70%;
    min-height: 10%;
    -webkit-width: 70%;
    -webkit-height: 10%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    border-radius: 50% 50% 2px 2px;
}

.blade-2 {
    width: 10%;
    height: 70%;
    min-width: 10%;
    min-height: 70%;
    -webkit-width: 10%;
    -webkit-height: 70%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    border-radius: 2px 2px 50% 50%;
}

/* Spinning animation - slower, more realistic speed */
.prop-1 {
    animation: spinPropeller1 0.5s linear infinite;
    -webkit-animation: spinPropeller1 0.5s linear infinite;
}

.prop-2 {
    animation: spinPropeller2 0.5s linear infinite;
    -webkit-animation: spinPropeller2 0.5s linear infinite;
}

.prop-3 {
    animation: spinPropeller3 0.5s linear infinite;
    -webkit-animation: spinPropeller3 0.5s linear infinite;
}

.prop-4 {
    animation: spinPropeller4 0.5s linear infinite;
    -webkit-animation: spinPropeller4 0.5s linear infinite;
}

@keyframes spinPropeller1 {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
        -webkit-transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
        -webkit-transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spinPropeller2 {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
        -webkit-transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
        -webkit-transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes spinPropeller3 {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
        -webkit-transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
        -webkit-transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes spinPropeller4 {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
        -webkit-transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
        -webkit-transform: translate(-50%, -50%) rotate(-360deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 0.125rem solid rgba(160, 160, 160, 0.5);
    border-radius: 0.75rem;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.25rem;
    height: 0.5rem;
    background: rgba(160, 160, 160, 0.3);
    border-radius: 0.125rem;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0.75rem);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 1.125rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(160, 160, 160, 0.2);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

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

.btn-primary {
    background: rgba(198, 8, 36, 0.8);
    backdrop-filter: blur(2vh);
    -webkit-backdrop-filter: blur(2vh);
    color: var(--white);
    box-shadow: 
        0 0.8vh 3.2vh rgba(198, 8, 36, 0.3),
        inset 0 0.1vh 0 rgba(160, 160, 160, 0.2);
    border: 0.2vh solid rgba(198, 8, 36, 0.4);
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(160, 160, 160, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: clamp(12rem, 18.75vw, 18.75rem);
    height: clamp(12rem, 18.75vw, 18.75rem);
}

.btn-primary:hover {
    background: rgba(214, 9, 40, 0.95);
    transform: translateY(-0.125rem) scale(1.02);
    box-shadow: 
        0 1vh 4vh rgba(198, 8, 36, 0.5),
        inset 0 0.1vh 0 rgba(160, 160, 160, 0.3),
        0 0 12vh rgba(198, 8, 36, 0.3);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(2vh);
    -webkit-backdrop-filter: blur(2vh);
    color: var(--white);
    border: 0.2vh solid rgba(198, 8, 36, 0.3);
    box-shadow: 
        0 0.8vh 3.2vh rgba(0, 0, 0, 0.4),
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.2);
}

.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(198, 8, 36, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-secondary:hover::before {
    width: clamp(12rem, 18.75vw, 18.75rem);
    height: clamp(12rem, 18.75vw, 18.75rem);
}

.btn-secondary:hover {
    background: rgba(10, 10, 10, 0.9);
    border-color: rgba(198, 8, 36, 0.6);
    transform: translateY(-0.125rem) scale(1.02);
    box-shadow: 
        0 1vh 4vh rgba(0, 0, 0, 0.6),
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.4),
        0 0 12vh rgba(198, 8, 36, 0.2);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* Section Styles */
.section {
    padding: 6rem 0;
    position: relative;
    width: 100%;
    max-width: 100vw;
}


/* No overflow-x: hidden on sections - it breaks sticky positioning */
/* Horizontal scroll is prevented by html/body overflow-x: hidden */

.section:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.15vh;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(198, 8, 36, 0.3) 20%, 
        rgba(198, 8, 36, 0.5) 50%, 
        rgba(198, 8, 36, 0.3) 80%, 
        transparent 100%);
    box-shadow: 0 0 1rem rgba(198, 8, 36, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0.5rem 0 1.5rem 0;
}

.section-label {
    display: inline-block;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 0 0 1rem rgba(198, 8, 36, 0.3);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.section-title {
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    padding: 0.75rem 0;
    overflow: visible;
    word-wrap: break-word;
    white-space: normal;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: var(--underline-width, 0);
    height: 0.2vh;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: width 0.3s ease;
    box-shadow: 0 0 0.5rem rgba(198, 8, 36, 0.5);
}

.section-header:hover .section-title::after {
    width: 100%;
}

.section-title.underline-animated::after {
    transition: width 0.1s linear;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    max-width: 50rem;
    margin: 0 auto;
}

.about-text {
    text-align: left;
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.about-description:last-of-type {
    margin-bottom: 2rem;
}

.stats-section {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

.stats-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: 3rem;
    margin-top: 0;
}

.made-in-section {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 0.15vh solid rgba(198, 8, 36, 0.3);
}

.made-in-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: 0.05em;
}

.made-in-text .flag {
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 0.25rem;
    vertical-align: middle;
    line-height: 1;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(2vh);
    -webkit-backdrop-filter: blur(2vh);
    border-radius: 1.5rem;
    border: 0.2vh solid rgba(198, 8, 36, 0.3);
    transition: var(--transition);
    box-shadow: 
        0 0.8vh 3.2vh rgba(0, 0, 0, 0.4),
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.2),
        inset 0 -0.1vh 0 rgba(198, 8, 36, 0.1),
        0 0 6vh rgba(198, 8, 36, 0.1);
}

.stat-item {
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 8, 36, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.stat-item:hover::before {
    width: 200%;
    height: 200%;
}

.stat-item:hover {
    transform: translateY(-0.5rem) scale(1.03);
    background: rgba(10, 10, 10, 0.95);
    border-color: rgba(198, 8, 36, 0.7);
    box-shadow: 
        0 2vh 6vh rgba(0, 0, 0, 0.7),
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.5),
        inset 0 -0.1vh 0 rgba(198, 8, 36, 0.3),
        0 0 18vh rgba(198, 8, 36, 0.35);
}

.stat-item:hover .stat-number {
    transform: scale(1.15);
    text-shadow: 0 0 2rem rgba(198, 8, 36, 0.7);
    color: var(--primary-hover);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    letter-spacing: -0.02em;
    display: inline-block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 400;
}

/* Technology Section */
.technology {
    background: var(--bg-primary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 75rem;
    margin: 0 auto;
}

.tech-card {
    position: relative;
    padding: 3rem 2.5rem;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(2.5vh);
    -webkit-backdrop-filter: blur(2.5vh);
    border-radius: 1.75rem;
    border: 0.2vh solid rgba(198, 8, 36, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    overflow: hidden;
    outline: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-shadow: 
        0 0.8vh 3.2vh rgba(0, 0, 0, 0.3),
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.15),
        0 0 0 0 rgba(198, 8, 36, 0);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(198, 8, 36, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.tech-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(198, 8, 36, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    filter: blur(2rem);
    border-radius: 50%;
}

.tech-card:hover::after {
    transform: scale(1.1);
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-card:hover::after {
    opacity: 1;
}

.tech-card:hover {
    transform: translateY(-0.75rem) scale(1.03);
    background: rgba(10, 10, 10, 0.9);
    border-color: rgba(198, 8, 36, 0.6);
    box-shadow: 
        0 2vh 6vh rgba(0, 0, 0, 0.6),
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.4),
        0 0 20vh rgba(198, 8, 36, 0.3);
    outline: none;
}

.tech-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.tech-icon-wrapper {
    position: relative;
    width: auto;
    min-width: 7rem;
    height: 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.tech-icon.tech-icon-logo {
    color: transparent;
}

.tech-icon svg {
    width: 5rem;
    height: 5rem;
    stroke-width: 1.5;
}

.tech-icon-logo {
    background: transparent;
}

.tech-logo-img {
    height: 6rem;
    width: auto;
    object-fit: contain;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: none !important;
}

.tech-card:hover .tech-logo-img {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.9;
}

.tech-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 8, 36, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    filter: blur(1rem);
}

.tech-card:hover .tech-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-hover);
}

.tech-card:hover .tech-icon-glow {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
}

.tech-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: rgba(198, 8, 36, 0.4);
    letter-spacing: 0.1em;
    transition: color 0.4s ease;
    position: relative;
    z-index: 1;
}

.tech-card:hover .tech-number {
    color: rgba(198, 8, 36, 0.7);
}

.tech-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    padding: 0.25rem 0;
    overflow: visible;
    word-wrap: break-word;
}

.tech-card:hover .tech-title {
    color: var(--primary-color);
}

.tech-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.125rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.tech-card:hover .tech-description {
    color: var(--text-primary);
}

.tech-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.2vh;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.tech-card:hover .tech-accent-line {
    width: 100%;
}

/* Products Section */
.products {
    background: var(--bg-secondary);
    position: relative;
}

.products-header-wrapper {
    position: sticky;
    top: 6rem;
    z-index: 5;
    background: var(--bg-secondary);
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

.products-scroll-spacer {
    position: relative;
}

.products-intro {
    max-width: 50rem;
    margin: 0 auto 2rem auto;
    text-align: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.products-intro.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.products-intro-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.products-intro-text:last-child {
    margin-bottom: 0;
}


.products-scroll-container {
    position: relative;
    max-width: min(56.25rem, 100vw);
    margin: 2rem auto 0 auto; /* Add top margin where intro text was */
    width: 100%;
    min-height: 20rem;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border: none;
    overflow: visible;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.products-scroll-spacer {
    height: 400vh;
    position: relative;
}

.product-section {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    opacity: 0;
    visibility: hidden;
    transition: none;
    pointer-events: none;
    z-index: 1;
    box-sizing: border-box;
}

.product-section.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.products-content {
    max-width: min(56.25rem, 100vw);
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    box-sizing: border-box;
}

.product-section {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border: none;
    overflow: visible;
    box-shadow: none;
    width: 100%;
    height: 100%;
}

.product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(198, 8, 36, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-section::after {
    content: '';
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 8, 36, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    filter: blur(2rem);
}

.product-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.product-accent {
    width: 0.3rem;
    height: 2.5rem;
    background: linear-gradient(180deg, var(--primary-color), transparent);
    border-radius: 0.15rem;
    flex-shrink: 0;
    transition: height 0.4s ease, opacity 0.4s ease;
    opacity: 0.6;
}

.product-section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    padding: 0.5rem 0;
    overflow: visible;
    word-wrap: break-word;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
    text-align: center;
}

.product-section:hover .product-section-title {
    color: var(--primary-color);
}

.product-section-description {
    font-size: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.75;
    font-weight: 400;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    max-width: 100%;
    text-align: center;
}

.product-section:hover .product-section-description {
    color: var(--text-primary);
}

.product-section-description:last-child {
    margin-bottom: 0;
}

.product-section-description:first-of-type {
    margin-top: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 2rem;
}

.product-card {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(2vh);
    -webkit-backdrop-filter: blur(2vh);
    border-radius: 1.5rem;
    border: 0.2vh solid rgba(198, 8, 36, 0.3);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 
        0 0.8vh 3.2vh rgba(0, 0, 0, 0.4),
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.2),
        inset 0 -0.1vh 0 rgba(198, 8, 36, 0.1),
        0 0 6vh rgba(198, 8, 36, 0.1);
}

.product-card {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(198, 8, 36, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-0.625rem) rotateX(3deg) scale(1.02);
    background: rgba(10, 10, 10, 0.9);
    border-color: rgba(198, 8, 36, 0.6);
    box-shadow: 
        0 1.5vh 5vh rgba(0, 0, 0, 0.6),
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.4),
        inset 0 -0.1vh 0 rgba(198, 8, 36, 0.2),
        0 0 12vh rgba(198, 8, 36, 0.25);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card:hover .product-name {
    color: var(--primary-color);
    transform: translateX(0.3125rem);
}

.product-image {
    width: 100%;
    height: 15.625rem;
    background: linear-gradient(135deg, rgba(198, 8, 36, 0.2) 0%, rgba(198, 8, 36, 0.1) 100%);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(160, 160, 160, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.product-info {
    padding: 2rem;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spec {
    padding: 0.5rem 1rem;
    background: rgba(82, 82, 82, 0.1);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid rgba(82, 82, 82, 0.3);
}

/* Why Born4Flight Section */
.why {
    background: var(--bg-primary);
}

.why-content {
    max-width: 75rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.why-item {
    position: relative;
    padding: 3rem 2.5rem;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(2.5vh);
    -webkit-backdrop-filter: blur(2.5vh);
    border-radius: 1.75rem;
    border: 0.2vh solid rgba(198, 8, 36, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    overflow: hidden;
    outline: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-shadow: 
        0 0.8vh 3.2vh rgba(0, 0, 0, 0.3),
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.15),
        0 0 0 0 rgba(198, 8, 36, 0);
}

.why-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(198, 8, 36, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.why-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(198, 8, 36, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    filter: blur(2rem);
    border-radius: 50%;
}

.why-item:hover::after {
    transform: scale(1.1);
}

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

.why-item:hover::after {
    opacity: 1;
}

.why-item:hover {
    transform: translateY(-0.75rem) scale(1.03);
    background: rgba(10, 10, 10, 0.9);
    border-color: rgba(198, 8, 36, 0.6);
    box-shadow: 
        0 2vh 6vh rgba(0, 0, 0, 0.6),
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.4),
        0 0 20vh rgba(198, 8, 36, 0.3);
    outline: none;
}

.why-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.why-icon-wrapper {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
}

.why-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.why-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    stroke-width: 1.5;
}

.why-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 8, 36, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.why-item:hover .why-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-hover);
}

.why-item:hover .why-icon-glow {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
}

.why-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: rgba(198, 8, 36, 0.5);
    letter-spacing: 0.1em;
    transition: color 0.4s ease, text-shadow 0.4s ease;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 0.5rem rgba(198, 8, 36, 0.2);
}

.why-item:hover .why-number {
    color: rgba(198, 8, 36, 0.8);
    text-shadow: 0 0 1rem rgba(198, 8, 36, 0.5);
}

.why-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    padding: 0.25rem 0;
    overflow: visible;
    word-wrap: break-word;
}

.why-item:hover .why-title {
    color: var(--primary-color);
}

.why-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.125rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.why-item:hover .why-description {
    color: var(--text-primary);
}

.why-accent-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.2vh;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.why-item:hover .why-accent-line {
    width: 100%;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    max-width: min(56.25rem, 100vw);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-sizing: border-box;
    gap: 5rem;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    font-weight: 400;
}

.contact-company {
    margin-bottom: 3rem;
}

.contact-company-name {
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.contact-company-tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-company-location {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    color: var(--white);
    font-size: 1.125rem;
    text-decoration: none;
    transition: var(--transition);
}

.contact-value:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(2vh);
    -webkit-backdrop-filter: blur(2vh);
    border: 0.2vh solid rgba(198, 8, 36, 0.3);
    border-radius: 0.75rem;
    color: var(--white);
    /* Mobile-friendly: 16px prevents zoom on focus (iOS) */
    font-size: 16px;
    font-family: inherit;
    font-weight: 400;
    transition: var(--transition);
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 
        0 0.8vh 3.2vh rgba(0, 0, 0, 0.4),
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.2);
}

.form-input:focus {
    outline: none;
    border-color: rgba(198, 8, 36, 0.7);
    background: rgba(10, 10, 10, 0.9);
    transform: translateY(-0.125rem);
    box-shadow: 
        0 0.8vh 3.2vh rgba(0, 0, 0, 0.4),
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.4),
        0 0 8vh rgba(198, 8, 36, 0.2),
        0 0 0 0.2vh rgba(198, 8, 36, 0.1);
}

.form-input:focus::placeholder {
    opacity: 0.5;
    transform: translateY(-0.125rem);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-textarea {
    resize: vertical;
    min-height: 7.5rem;
}

.form-message {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.form-message-success {
    background: rgba(198, 8, 36, 0.1);
    border: 0.15vh solid rgba(198, 8, 36, 0.3);
    color: var(--primary-color);
}

.form-message-error {
    background: rgba(198, 8, 36, 0.1);
    border: 0.15vh solid rgba(198, 8, 36, 0.5);
    color: var(--primary-color);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(82, 82, 82, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    flex: 1;
    min-width: 15.625rem;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-red);
    letter-spacing: -0.01em;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 1.125rem;
    font-weight: 400;
}

.footer-location {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 400;
}

.footer-link:hover {
    color: var(--white);
    font-weight: 500;
    transform: translateX(0.25rem);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(82, 82, 82, 0.3);
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom p {
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.875rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 1.5vh rgba(198, 8, 36, 0.2);
    }
    50% {
        box-shadow: 0 0 2.5vh rgba(198, 8, 36, 0.4);
    }
}

/* Scroll-triggered animation classes */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Faster animation for why-items */
.scroll-fade-in-fast {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scroll-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-3rem);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(3rem);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 60.5rem) {
    .nav-container {
        padding: 1.25rem 1rem;
        min-height: 4.5rem;
    }
    
    .nav-logo {
        left: 1rem;
        position: relative;
    }
    
    .nav-logo .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-svg {
        width: 3rem;
        height: 3rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 4.5rem;
        left: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 100%;
        height: calc(100vh - 4.5rem);
        text-align: center;
        transition: var(--transition);
        padding: 2rem 0;
        border-top: 1px solid rgba(82, 82, 82, 0.3);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }
    
    /* Backdrop overlay for mobile menu */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 4.5rem;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .language-switcher {
        right: 1rem;
    }
    
    .nav-toggle {
        display: flex;
        right: calc(1rem + 4.5rem);
        z-index: 1003;
    }

    .hero {
        padding-bottom: calc(4rem + 8vh);
    }
    
    .section {
        padding-bottom: calc(6rem + 8vh);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 40rem) {
    /* Smaller fonts on mobile */
    body {
        font-size: 0.9rem;
    }
    
    .products-intro-text {
        font-size: 1.05rem;
    }
    
    .product-section-title {
        font-size: 2rem;
    }
    
    .product-section-description {
        font-size: 1.1rem;
        line-height: 1.65;
    }
    
    .container {
        padding: 0 1.5rem;
    }

    .nav-container {
        padding: 1rem 1rem;
        min-height: 4rem;
    }
    
    .nav-logo {
        left: 1rem;
        position: relative;
    }
    
    .nav-logo .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-svg {
        width: 2.5rem;
        height: 2.5rem;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .section {
        padding: 4rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tech-card {
        padding: 2rem 1.5rem;
    }
    
    /* Ensure scroll animations still work on mobile */
    .tech-card.scroll-fade-in {
        opacity: 0;
        transform: translateY(2rem);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .tech-card.scroll-fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .tech-card-header {
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .tech-icon-wrapper {
        min-width: 5rem;
        height: 5rem;
    }
    
    .tech-logo-img {
        height: 4rem;
    }
    
    .tech-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .tech-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .why-content {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1.5rem; /* Bigger gap between buttons on mobile */
    }

    .btn {
        width: 100%;
        text-align: center;
        /* Touch-friendly: ensure minimum tap target size */
        min-height: 44px;
        padding: 1rem 2rem;
    }
    
    /* Mobile form improvements */
    .form-input,
    .form-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1.25rem 1.5rem; /* Larger touch target */
    }
    
    .nav-link {
        padding: 1rem 0; /* Larger touch target for mobile menu */
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .language-switcher {
        right: 1rem;
    }
    
    .nav-toggle {
        display: flex;
        right: calc(1rem + 4.5rem);
        z-index: 1003;
    }

    .lang-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }

    .lang-menu {
        right: 0;
        min-width: 9rem;
    }

    .lang-option {
        padding: 0.625rem 0.875rem;
        font-size: 0.75rem;
    }
}

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

/* ========================================
   AYRA AI Assistant Styles
   Matching FL1GHT exactly
   ======================================== */

/* AYRA Avatar Container - Left Corner */
.ayra-avatar-container {
    position: fixed;
    bottom: 1.5vw;
    left: 1.5vw;
    z-index: 10000;
    --avatar-size: 20vh; /* Default size in vh */
    --scale: calc(var(--avatar-size, 20vh) / 20vh); /* Normalize to 20vh as base */
    pointer-events: auto;
    max-width: calc(100vw - 3vw); /* Prevent extending beyond viewport */
    max-height: calc(100vh - 3vw);
    box-sizing: border-box;
}

.ayra-avatar-container[data-position="right"] {
    left: auto;
    right: 1.5vw;
}

/* Main Container with Glassmorphism (matching FL1GHT) */
.ayra-avatar-main-container {
    position: relative;
}

/* Glow Effect - Animated on hover - Terminal style */
.ayra-avatar-glow-outer {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: calc(0.4vw * var(--scale) * 2); /* Terminal style - smaller rounded corners */
    filter: blur(calc(1.5vh * var(--scale) * 1.5));
    inset: calc(-1vh * var(--scale) * 1.5);
    pointer-events: none;
    z-index: -2;
}

.ayra-avatar-main-container:hover .ayra-avatar-glow-outer {
    opacity: 1;
}

.ayra-avatar-glow-outer::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: calc(0.4vw * var(--scale) * 2); /* Terminal style - smaller rounded corners */
    background: linear-gradient(45deg, 
        rgba(198, 8, 36, 0.3), 
        rgba(147, 51, 234, 0.4), 
        rgba(236, 72, 153, 0.3), 
        rgba(198, 8, 36, 0.3));
    background-size: 300% 300%;
    animation: ayra-glow-rotate 4s ease-in-out infinite;
}

.ayra-avatar-glow-inner {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: calc(0.4vw * var(--scale)); /* Terminal style - smaller rounded corners */
    filter: blur(calc(1.5vh * var(--scale)));
    inset: calc(-1vh * var(--scale));
    pointer-events: none;
    z-index: -1;
}

.ayra-avatar-main-container:hover .ayra-avatar-glow-inner {
    opacity: 1;
}

.ayra-avatar-glow-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: calc(0.4vw * var(--scale)); /* Terminal style - smaller rounded corners */
                background: linear-gradient(135deg, 
        rgba(198, 8, 36, 0.5), 
        rgba(147, 51, 234, 0.6), 
        rgba(236, 72, 153, 0.5), 
        rgba(198, 8, 36, 0.5));
    background-size: 300% 300%;
    animation: ayra-glow-pulse 3s ease-in-out infinite;
}

@keyframes ayra-glow-rotate {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg) saturate(0.8);
    }
    25% {
        background-position: 50% 100%;
        filter: hue-rotate(90deg) saturate(1.5);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(180deg) saturate(1.2);
    }
    75% {
        background-position: 50% 0%;
        filter: hue-rotate(270deg) saturate(1.5);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(360deg) saturate(0.8);
    }
}

@keyframes ayra-glow-pulse {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg) saturate(0.8);
    }
    33% {
        background-position: 100% 50%;
        filter: hue-rotate(-120deg) saturate(1.8);
    }
    66% {
        background-position: 50% 100%;
        filter: hue-rotate(-240deg) saturate(1.8);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(-360deg) saturate(0.8);
    }
}

/* AYRA Avatar Frame - Terminal style with smaller rounded corners */
.ayra-avatar-frame {
    position: relative;
    width: calc(var(--avatar-size, 20vh) * 0.674); /* Width = height * 0.674 (matching FL1GHT aspect ratio) */
    max-width: calc(100vw - 3vw); /* Prevent extending beyond viewport */
    border: 2px solid rgba(198, 8, 36, 0.3); /* border-primary/30 with red */
    border-radius: calc(0.4vw * var(--scale)); /* Terminal style - smaller rounded corners */
    padding: calc(0.4vh * var(--scale)); /* responsiveStyles.padding */
    box-shadow: 0 0.8vh 3.2vh rgba(0, 0, 0, 0.4); /* shadow-2xl */
    display: inline-block;
    overflow: visible; /* Allow tooltip to show outside */
    box-sizing: border-box;
}

/* AYRA Avatar Image Container - Terminal style */
.ayra-avatar-image-container {
    position: relative;
    width: 100%; /* Fill frame content area (after padding) */
    height: var(--avatar-size, 20vh); /* Explicit height */
    border-radius: calc(0.3vw * var(--scale)); /* Terminal style - smaller rounded corners */
    background: rgba(10, 10, 10, 0.5); /* bg-dark-surface/50 */
    overflow: hidden; /* Clip avatar content */
    box-sizing: border-box; /* Ensure padding is included in width calculation */
    margin: 0;
    padding: 0;
}

/* Overlay gradient on hover (matching FL1GHT) */
.ayra-avatar-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.ayra-avatar-main-container:hover .ayra-avatar-image-container::after {
    opacity: 1;
}

/* AYRA Avatar Pose Image - Terminal style */
.ayra-avatar-pose {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center center; /* Ensure perfect centering */
    transition: opacity 0s ease; /* Instant transition (no delay) for seamless switching */
    will-change: opacity;
    transform: translateZ(0); /* Force GPU acceleration */
    backface-visibility: hidden; /* Optimize rendering */
    border-radius: calc(0.3vw * var(--scale)); /* Terminal style - smaller rounded corners */
    margin: 0;
    padding: 0;
}

/* AYRA Avatar Video - Terminal style */
.ayra-avatar-video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center center; /* Ensure perfect centering */
    transition: opacity 0s ease; /* Instant transition (no delay) for seamless switching */
    will-change: opacity;
    transform: translateZ(0); /* Force GPU acceleration */
    backface-visibility: hidden; /* Optimize rendering */
    border-radius: calc(0.3vw * var(--scale)); /* Terminal style - smaller rounded corners */
    margin: 0;
    padding: 0;
}

/* Hide Safari video controls */
.ayra-avatar-video::-webkit-media-controls-overlay-play-button,
.ayra-avatar-video::-webkit-media-controls-overlay-enclosure,
.ayra-avatar-video::-webkit-media-controls,
.ayra-avatar-video::-webkit-media-controls-panel,
.ayra-avatar-video::-webkit-media-controls-play-button,
.ayra-avatar-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* AYRA Console Button (matching FL1GHT exactly) */
.ayra-console-button {
    flex: 1;
    height: calc(var(--avatar-size, 20vh) * 0.12); /* Smaller height */
    padding-left: calc(0.3vw * var(--scale) * 1.5);
    padding-right: calc(0.3vw * var(--scale) * 1.5);
    padding-top: calc(0.2vw * var(--scale));
    padding-bottom: calc(0.2vw * var(--scale));
    border: 2px solid rgba(198, 8, 36, 0.3); /* border-primary/30 with red */
    border-radius: calc(0.3vw * var(--scale) * 0.5);
    background: rgba(0, 0, 0, 0.6); /* bg-black/60 */
    backdrop-filter: blur(0.2vw); /* backdrop-blur-sm */
    -webkit-backdrop-filter: blur(0.2vw);
    color: rgba(198, 8, 36, 0.9); /* text-primary/90 with red */
    font-family: 'fccTYPO', 'Courier New', monospace;
    font-size: clamp(0.6rem, 1vw, 0.9rem); /* Responsive text size */
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: calc(0.3vw * var(--scale));
    transition: all 0.2s ease;
    text-align: left;
    overflow: hidden;
    box-shadow: 
        inset 0 0.1vw 0 rgba(198, 8, 36, 0.1),
        0 0.2vw 0.8vw rgba(0, 0, 0, 0.3);
    margin-top: calc(0.3vw * var(--scale) * 0.5);
}

.ayra-console-button:hover {
    background: rgba(0, 0, 0, 0.7); /* hover:bg-black/70 */
    border-color: rgba(198, 8, 36, 0.5); /* hover:border-primary/50 with red */
    color: rgba(198, 8, 36, 1); /* group-hover/console:text-primary with red */
}

.ayra-console-button:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--ayra-primary);
    box-shadow: 
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.2),
        0 0.2vh 1.2vh rgba(198, 8, 36, 0.2);
}

.ayra-console-prompt {
    color: var(--ayra-primary);
    flex-shrink: 0;
}

/* AYRA Avatar Settings Button (matching FL1GHT) */
.ayra-avatar-settings-button {
    position: absolute;
    bottom: 4%;
    right: 4%;
    width: 25%;
    aspect-ratio: 1;
    border-radius: 12%;
    background: rgba(198, 8, 36, 0.3);
    border: 1px solid rgba(198, 8, 36, 0.4);
    backdrop-filter: blur(0.2vw);
    -webkit-backdrop-filter: blur(0.2vw);
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
}

.ayra-avatar-settings-button svg {
    width: 70%;
    height: 70%;
    color: white;
    transition: transform 0.3s ease;
}

.ayra-avatar-main-container:hover .ayra-avatar-settings-button {
    opacity: 1;
}

.ayra-avatar-settings-button:hover {
    background: rgba(198, 8, 36, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0.2vw 1vw rgba(198, 8, 36, 0.5);
}

.ayra-avatar-settings-button:hover svg {
    transform: rotate(90deg);
}

/* AYRA Size Settings Modal */
.ayra-size-settings-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 1vh;
}

.ayra-size-settings-modal {
    width: 50vw;
    max-width: 600px;
    min-width: 400px;
    background: rgba(45, 47, 53, 0.95);
    backdrop-filter: blur(2vh);
    -webkit-backdrop-filter: blur(2vh);
    border: 0.1vh solid rgba(198, 8, 36, 0.2);
    border-radius: 1vw;
    box-shadow: 
        0 0.8vh 3.2vh rgba(0, 0, 0, 0.4),
        inset 0 0.1vh 0 rgba(198, 8, 36, 0.2),
        inset 0 -0.1vh 0 rgba(198, 8, 36, 0.1),
        0 0 6vh rgba(198, 8, 36, 0.1);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ayra-size-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5vh 2vw;
    flex-shrink: 0;
}

.ayra-size-settings-close {
    width: 2vw;
    height: 2vw;
    border-radius: 0.5vw;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(248, 113, 113, 1);
}

.ayra-size-settings-close:hover {
    background: rgba(220, 38, 38, 0.3);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0.2vw 1vw rgba(220, 38, 38, 0.5);
}

.ayra-size-settings-content {
    padding: 2.5vw;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ayra-size-settings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2vw;
    width: 100%;
    box-sizing: border-box;
}

.ayra-size-preset-button {
    padding: 2.5vh 1vw;
    border: 0.2vh solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75vw;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05vw;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'fccTYPO', 'Courier New', monospace;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    box-sizing: border-box;
}

.ayra-size-preset-button:hover {
    border-color: rgba(198, 8, 36, 0.4);
    background: rgba(198, 8, 36, 0.05);
    box-shadow: 0 0 1.5vh rgba(198, 8, 36, 0.4), inset 0 0 1.5vh rgba(198, 8, 36, 0.15);
}

.ayra-size-preset-button.active {
    background: rgba(198, 8, 36, 0.1);
    border-color: rgba(198, 8, 36, 1);
    color: rgba(198, 8, 36, 1);
    box-shadow: 0 0 2vh rgba(198, 8, 36, 0.3), inset 0 0 2vh rgba(198, 8, 36, 0.1);
}

/* Responsive adjustments for size settings modal */
@media (max-width: 1024px) {
    .ayra-size-settings-modal {
        width: 70vw;
        min-width: 350px;
    }
    
    .ayra-size-settings-content {
        padding: 2vw;
    }
    
    .ayra-size-settings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1vw;
    }
    
    .ayra-size-preset-button {
        font-size: 1.2vw;
        padding: 2vh 1vw;
        min-height: 55px;
    }
}

@media (max-width: 768px) {
    .ayra-size-settings-modal {
        width: 85vw;
        min-width: 300px;
    }
    
    .ayra-size-settings-content {
        padding: 1.5vw;
    }
    
    .ayra-size-settings-grid {
        grid-template-columns: 1fr;
        gap: 0.8vw;
    }
    
    .ayra-size-preset-button {
        font-size: 1.5vw;
        padding: 1.8vh 1vw;
        min-height: 50px;
    }
}

.ayra-console-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.9;
}

.ayra-console-button:hover .ayra-console-text {
    opacity: 1;
}

/* AYRA Help Panel Backdrop */
.ayra-help-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.ayra-help-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* AYRA Help Wrapper (centered) */
.ayra-help-wrapper {
    position: fixed;
    inset: 0;
    z-index: 201;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1vh;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ayra-help-wrapper.active {
    opacity: 1;
    pointer-events: auto;
}

/* Container for panel and glows */
.ayra-help-wrapper > .ayra-help-panel {
    position: relative;
}

/* Glow Effects - Gradient from FL1GHT */
.ayra-help-glow-outer {
    position: absolute;
    top: -3vh;
    left: -3vh;
    right: -3vh;
    bottom: -3vh;
    border-radius: 2vh;
    background: linear-gradient(to right, 
        rgba(0, 212, 170, 0.3),      /* cyan/teal */
        rgba(147, 51, 234, 0.4),     /* purple */
        rgba(236, 72, 153, 0.3)      /* pink */
    );
    filter: blur(3vh);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: -2;
}

.ayra-help-glow-inner {
    position: absolute;
    top: -1.5vh;
    left: -1.5vh;
    right: -1.5vh;
    bottom: -1.5vh;
    border-radius: 1.5vh;
    background: linear-gradient(to right, 
        rgba(0, 212, 170, 0.5),      /* cyan/teal */
        rgba(147, 51, 234, 0.6),     /* purple */
        rgba(236, 72, 153, 0.5)      /* pink */
    );
    filter: blur(1.5vh);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: -1;
}

/* AYRA Help Panel */
.ayra-help-panel {
    position: relative;
    width: 75vw;
    height: 80vh;
    max-width: 90vw;
    max-height: 90vh;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 1vh;
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(1vh);
    -webkit-backdrop-filter: blur(1vh);
    box-shadow: 
        rgba(0, 0, 0, 0.4) 0px 0.8vh 3.2vh,
        rgba(198, 8, 36, 0.2) 0px 0.1vh 0px inset,
        rgba(198, 8, 36, 0.1) 0px -0.1vh 0px inset,
        rgba(198, 8, 36, 0.1) 0px 0px 6vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
}

/* AYRA Help Header */
.ayra-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5vh 1.5vw;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(10, 10, 20, 0.5);
    backdrop-filter: blur(0.5vh);
    -webkit-backdrop-filter: blur(0.5vh);
    flex-shrink: 0;
}

.ayra-help-header-left {
    display: flex;
    align-items: center;
    gap: 0.75vw;
}

.ayra-help-header-center {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    flex: 1;
    justify-content: center;
}

.ayra-help-header-right {
    display: flex;
    align-items: center;
    gap: 0.5vw;
}

/* Source Selector (B4F / FL1GHT) */
.ayra-help-source-selector {
    display: flex;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.4vh;
    overflow: hidden;
    font-size: 1vw;
}

.ayra-source-btn {
    padding: 0.5vh 0.9vw;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1vw;
    font-weight: 600;
}

.ayra-source-btn:not(:last-child) {
    border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.ayra-source-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ayra-source-btn.active {
    background: rgba(198, 8, 36, 0.2);
    color: var(--ayra-primary);
}

.ayra-help-title {
    font-weight: bold;
    color: var(--ayra-primary);
    font-size: 1.5vw;
    font-family: 'fccTYPO', monospace, sans-serif;
}

/* Segmented Control */
.ayra-help-segmented-control {
    display: flex;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.4vh;
    overflow: hidden;
    font-size: 1vw;
}

.ayra-segmented-btn {
    padding: 0.5vh 0.9vw;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1vw;
    font-family: 'fccTYPO', monospace, sans-serif;
    font-weight: 600;
}

.ayra-segmented-btn:not(:last-child) {
    border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.ayra-segmented-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ayra-segmented-btn.active {
    background: rgba(198, 8, 36, 0.2);
    color: var(--ayra-primary);
}

/* Close Button */
.ayra-help-close {
    background: rgba(239, 68, 68, 0.3);
    border: 2px solid rgba(239, 68, 68, 0.4);
    backdrop-filter: blur(0.2vh);
    transition: all 0.3s ease;
    padding: 0.5vh;
    border-radius: 0.75vh;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ayra-help-close:hover {
    background: rgba(239, 68, 68, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 1vh rgba(239, 68, 68, 0.5);
}

.ayra-help-close svg {
    width: 1.5vw;
    height: 1.5vw;
    color: white;
    transition: transform 0.3s ease;
}

.ayra-help-close:hover svg {
    transform: rotate(90deg);
}

/* Breadcrumb */
.ayra-help-breadcrumb {
    display: flex;
    align-items: center;
    padding: 1vh 1.5vw;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(10, 10, 20, 0.3);
    backdrop-filter: blur(0.5vh);
    -webkit-backdrop-filter: blur(0.5vh);
    gap: 0.5vw;
    flex-shrink: 0;
}

.ayra-help-breadcrumb-item {
    background: none;
    border: none;
    color: var(--ayra-primary);
    font-size: 1.1vw;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    font-family: 'fccTYPO', monospace, sans-serif;
}

.ayra-help-breadcrumb-item:hover {
    text-decoration: underline;
}

.ayra-help-breadcrumb-item.current {
    color: var(--text-primary);
    cursor: default;
}

.ayra-help-breadcrumb-item.current:hover {
    text-decoration: none;
}

.ayra-help-breadcrumb-sep {
    color: var(--text-secondary);
    font-size: 1.1vw;
    font-family: 'fccTYPO', monospace, sans-serif;
}

.ayra-help-breadcrumb-back {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1vw;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    font-family: 'fccTYPO', monospace, sans-serif;
}

.ayra-help-breadcrumb-back:hover {
    color: var(--ayra-primary);
}

/* AYRA Content Area */
.ayra-help-content {
    flex: 1;
    overflow-y: auto;
    padding: 2vh 1.5vw;
}

.ayra-help-content::-webkit-scrollbar {
    width: 0.5vw;
}

.ayra-help-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.ayra-help-content::-webkit-scrollbar-thumb {
    background: rgba(198, 8, 36, 0.3);
    border-radius: 0.25vw;
}

.ayra-help-content::-webkit-scrollbar-thumb:hover {
    background: var(--ayra-primary);
}

/* Chat Content */
.ayra-help-chat {
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}

.ayra-help-chat-empty {
    color: var(--text-secondary);
    font-size: 1.2vw;
    font-family: 'fccTYPO', monospace, sans-serif;
}

.ayra-help-messages {
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}

/* AYRA Message */
.ayra-help-message {
    border-radius: 0.5vh;
    padding: 1vh 1vw;
}

.ayra-help-message.assistant {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(to bottom, rgba(198, 8, 36, 0.1), transparent);
}

.ayra-help-message.user {
    border: 2px solid rgba(160, 160, 160, 0.2);
    background: rgba(0, 0, 0, 0.2);
}

.ayra-help-msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5vh;
}

.ayra-help-msg-role {
    font-family: monospace;
    font-size: 1vw;
}

.ayra-help-message.assistant .ayra-help-msg-role {
    color: var(--ayra-primary);
}

.ayra-help-message.user .ayra-help-msg-role {
    color: var(--text-secondary);
}

.ayra-help-msg-meta {
    display: flex;
    align-items: center;
    gap: 0.75vw;
}

.ayra-help-method-badge {
    font-family: monospace;
    font-weight: bold;
    border: 1px solid;
    border-radius: 0.2vh;
    padding: 0.2vh 0.4vw;
    font-size: 0.9vw;
}

.ayra-help-method-badge[data-method="S"],
.ayra-help-method-badge[data-method="H"] {
    background: rgba(0, 217, 255, 0.2);
    border-color: #00d9ff;
    color: #00d9ff;
}

.ayra-help-method-badge[data-method="T"] {
    background: rgba(255, 165, 0, 0.2);
    border-color: #ffa500;
    color: #ffa500;
}

.ayra-help-method-badge[data-method="M"],
.ayra-help-method-badge[data-method="R"] {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    color: #00ff00;
}

.ayra-help-confidence {
    color: rgba(198, 8, 36, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 0.2vh 0.6vw;
    font-size: 0.9vw;
}

.ayra-help-msg-doc {
    color: var(--text-secondary);
    font-size: 0.9vw;
}

.ayra-help-msg-content {
    font-size: 1.1vw;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: pre-wrap;
}

.ayra-help-msg-text {
    font-size: 1.1vw;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: pre-wrap;
}

.ayra-help-msg-text h4 {
    font-size: 1.3vw;
    font-weight: bold;
    margin-top: 1vh;
    margin-bottom: 0.5vh;
    color: var(--ayra-primary);
}

.ayra-help-msg-text strong {
    font-weight: bold;
    /* Inherit text color, don't override with red */
}

.ayra-help-bullet {
    margin-left: 1.5em;
    text-indent: -1.5em;
}

.ayra-help-msg-image {
    margin-top: 0.8vh;
}

.ayra-help-msg-image-wrapper {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.4vh;
    padding: 0.5vh;
    width: 60%;
    min-width: 20vw;
    margin: 0 auto;
}

.ayra-help-msg-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 0.4vh;
    display: block;
}

/* AYRA Message Images */
.ayra-message-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8vw, 1fr));
    gap: 0.5vw;
    margin-top: 0.75vh;
}

.ayra-message-image {
    border: 1px solid var(--ayra-border);
    border-radius: 0.4vh;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.ayra-message-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* AYRA Loading */
.ayra-loading {
    color: var(--text-secondary);
    font-size: 0.8vw;
    font-style: italic;
    padding: 1vh 0;
}

/* Input Area */
.ayra-help-input-area {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(10, 10, 20, 0.6);
    padding: 1vh 1.5vw;
    flex-shrink: 0;
}

.ayra-help-quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5vw;
    margin-bottom: 0.6vh;
    max-width: 100%;
}

.ayra-help-quick-prompt {
    color: rgba(198, 8, 36, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(198, 8, 36, 0.1);
    border-radius: 999px;
    padding: 0.3vh 0.7vw;
    font-size: 1vw;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ayra-help-quick-prompt:hover {
    color: var(--ayra-primary);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(198, 8, 36, 0.2);
}

.ayra-help-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 0.75vw;
    max-width: 100%;
}

.ayra-help-input-container {
    flex: 1;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5vh;
    padding: 0.6vh 0.8vw;
    min-width: 0;
    transition: all 0.2s ease;
}

.ayra-help-input-container:focus-within {
    border-color: rgba(255, 255, 255, 0.6);
}

.ayra-help-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    resize: none;
    font-size: 1.2vw;
    line-height: 1.5;
    font-family: inherit;
    min-height: 1.5em;
    max-height: 6em;
    overflow-y: auto;
}

.ayra-help-input::placeholder {
    color: var(--text-secondary);
}

.ayra-help-send-btn {
    background: linear-gradient(to right, rgba(198, 8, 36, 0.8), rgba(147, 51, 234, 0.8));
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    border-radius: 0.5vh;
    padding: 0.9vh 1.5vw;
    font-size: 1.1vw;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ayra-help-send-btn:hover:not(:disabled) {
    background: linear-gradient(to right, var(--ayra-primary), rgba(147, 51, 234, 1));
    box-shadow: 0 0 1vh rgba(198, 8, 36, 0.5);
    transform: scale(1.05);
}

.ayra-help-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
    box-shadow: none;
}

.ayra-help-send-text {
    display: flex;
    align-items: center;
    gap: 0.4vw;
}

.ayra-help-send-text svg {
    transition: all 0.3s ease;
    transform-origin: center;
}

.ayra-help-send-btn:hover:not(:disabled) .ayra-help-send-text svg {
    transform: rotate(45deg) translate(0.2vw, -0.2vh);
}

.ayra-help-send-loading {
    display: flex;
    align-items: center;
    gap: 0.4vw;
}

.ayra-help-send-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Topics Content */
.ayra-help-categories {
    display: flex;
    flex-direction: column;
}

.ayra-help-hint {
    color: var(--text-secondary);
    font-size: 1.2vw;
    margin-bottom: 1.5vh;
    font-family: 'fccTYPO', monospace, sans-serif;
}

.ayra-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15vw, 1fr));
    gap: 0.75vw;
}

.ayra-help-card {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5vh;
    background: rgba(26, 26, 46, 0.25);
    padding: 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ayra-help-card:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.ayra-help-card-title {
    font-weight: 600;
    font-size: 1.4vw;
    margin-bottom: 0.5vh;
    font-family: 'fccTYPO', monospace, sans-serif;
}

.ayra-help-card[data-category] .ayra-help-card-title,
.ayra-help-card[data-subcategory] .ayra-help-card-title,
.ayra-help-card[data-subsubcategory] .ayra-help-card-title {
    color: var(--ayra-primary);
}

.ayra-help-card[data-doc-id] .ayra-help-card-title {
    color: var(--text-primary);
}

.ayra-help-card-desc {
    color: var(--text-secondary);
    font-size: 1vw;
    margin-bottom: 0.5vh;
    line-height: 1.5;
    font-family: 'fccTYPO', monospace, sans-serif;
}

.ayra-help-card-meta {
    color: var(--text-secondary);
    font-size: 1vw;
    font-family: 'fccTYPO', monospace, sans-serif;
}

/* Document View */
.ayra-help-document {
    display: flex;
    flex-direction: column;
}

.ayra-help-doc-title {
    color: rgba(255, 255, 255, 0.95);
    font-weight: bold;
    font-size: 1.5vw;
    margin-bottom: 0.75vh;
    font-family: 'fccTYPO', monospace, sans-serif;
    text-shadow: 0 0.1vh 0.2vh rgba(0, 0, 0, 0.5);
}

.ayra-help-doc-meta {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    font-size: 1vw;
    margin-bottom: 1.5vh;
    font-family: 'fccTYPO', monospace, sans-serif;
    padding-bottom: 1vh;
    border-bottom: 1px solid rgba(198, 8, 36, 0.2);
}

.ayra-help-doc-meta span {
    color: rgba(198, 8, 36, 0.8);
    font-weight: 500;
}

.ayra-help-doc-content {
    display: flex;
    flex-direction: column;
    gap: 0.75vh;
}

.ayra-help-doc-text {
    font-size: 1.1vw;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre-wrap;
    font-family: 'fccTYPO', monospace, sans-serif;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5vh 1.5vw;
    border-radius: 0.5vh;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ayra-help-doc-text h4 {
    font-size: 1.3vw;
    font-weight: bold;
    margin-top: 1vh;
    margin-bottom: 0.5vh;
    color: var(--ayra-primary);
    text-shadow: 0 0.1vh 0.2vh rgba(0, 0, 0, 0.3);
}

.ayra-help-doc-text strong {
    font-weight: bold;
    /* Inherit text color, don't override with red */
}

.ayra-help-doc-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.8vh 0;
}

.ayra-help-doc-image-wrapper {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.4vh;
    padding: 0.5vh;
    width: 60%;
    min-width: 20vw;
}

.ayra-help-doc-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 0.4vh;
    display: block;
}

.ayra-help-loading,
.ayra-help-error,
.ayra-help-empty {
    padding: 2vh;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2vw;
}

.ayra-topic-category {
    margin-bottom: 2vh;
}

.ayra-topic-category-title {
    font-size: 1vw;
    font-weight: 600;
    color: var(--ayra-primary);
    margin-bottom: 0.5vh;
    padding-bottom: 0.5vh;
    border-bottom: 1px solid var(--ayra-border);
}

.ayra-topic-category-desc {
    font-size: 0.75vw;
    color: var(--text-secondary);
    margin-bottom: 1vh;
    line-height: 1.5;
}

.ayra-topic-doc-keywords {
    font-size: 0.7vw;
    color: var(--ayra-primary);
    opacity: 0.7;
    margin-top: 0.5vh;
    font-style: italic;
}

.ayra-topic-documents {
    display: flex;
    flex-direction: column;
    gap: 0.8vh;
}

.ayra-topic-document {
    padding: 1vh 1.2vw;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ayra-border);
    border-radius: 0.4vh;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ayra-topic-document:hover {
    background: rgba(198, 8, 36, 0.1);
    border-color: var(--ayra-primary);
    transform: translateX(0.3vw);
}

.ayra-topic-doc-title {
    font-size: 0.9vw;
    font-weight: 600;
    color: var(--ayra-primary);
    margin-bottom: 0.5vh;
}

.ayra-topic-doc-preview {
    font-size: 0.75vw;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive Design for AYRA - Based on Viewport Width */
@media (max-width: 1400px) {
    body {
        padding-bottom: calc(7vw + 2vw + 1.5rem);
    }
    
    .hero {
        padding-bottom: calc(4rem + 7vw);
    }
    
    .section {
        padding-bottom: calc(6rem + 7vw);
    }
    
    .ayra-avatar-container {
        --avatar-size: 7vw;
    }
    
    .ayra-console-button {
        height: calc(var(--avatar-size, 7vw) * 0.12);
        font-size: clamp(0.65rem, 1.1vw, 0.95rem);
    }
    
    .container {
        padding-left: clamp(1rem, 3vw, 2rem);
        padding-right: clamp(1rem, 3vw, 2rem);
    }
}

@media (max-width: 1200px) {
    body {
        padding-bottom: calc(6vw + 2vw + 1.5rem);
    }
    
    .hero {
        padding-bottom: calc(4rem + 6vw);
    }
    
    .section {
        padding-bottom: calc(6rem + 6vw);
    }
    
    .ayra-avatar-container {
        --avatar-size: 6vw;
        bottom: 1vw;
        left: 1vw;
    }
    
    .ayra-console-button {
        height: calc(var(--avatar-size, 6vw) * 0.12);
        font-size: clamp(0.6rem, 1vw, 0.9rem);
    }
    
    .container {
        padding-left: clamp(1rem, 3vw, 2rem);
        padding-right: clamp(1rem, 3vw, 2rem);
    }
}

@media (max-width: 992px) {
    body {
        padding-bottom: calc(5vw + 1.5vw + 1rem);
    }
    
    .hero {
        padding-bottom: calc(4rem + 5vw);
    }
    
    .section {
        padding-bottom: calc(6rem + 5vw);
    }
    
    .ayra-avatar-container {
        --avatar-size: 5vw;
    }
    
    .ayra-console-button {
        height: calc(var(--avatar-size, 5vw) * 0.12);
        font-size: clamp(0.55rem, 0.95vw, 0.85rem);
    }
    
    .container {
        padding-left: clamp(1rem, 3vw, 2rem);
        padding-right: clamp(1rem, 3vw, 2rem);
    }
}

@media (max-width: 768px) {
    /* Smaller fonts on tablets */
    body {
        font-size: 0.95rem;
        padding-bottom: calc(4vw + 1vw + 1rem);
    }
    
    .hero {
        padding-bottom: calc(7rem + 4vw); /* More padding to ensure buttons are visible */
        min-height: 100vh; /* Ensure full viewport height to show both buttons */
        padding-top: 4rem; /* Extra top padding for mobile */
        padding-left: clamp(0.5rem, 1.5vw, 1.5rem);
        padding-right: clamp(0.5rem, 1.5vw, 1.5rem);
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .hero-content {
        padding-bottom: 5rem; /* Extra padding after buttons to prevent parallax hiding */
    }
    
    .hero-text {
        padding-bottom: 2rem; /* Extra padding for text content */
    }
    
    .hero-buttons {
        gap: 2.5rem; /* Bigger gap between buttons on mobile */
        margin-top: 2rem; /* Extra top margin */
        margin-bottom: 7rem; /* Extra margin between bottom button and end of section */
    }
    
    .section {
        padding-bottom: calc(3rem + 4vw);
    }
    
    /* Add gap between products intro and product items on mobile */
    .products-intro {
        margin-bottom: 5rem;
    }
    
    .products-intro-text {
        font-size: 1.1rem;
    }
    
    .products-scroll-container {
        margin-top: 3rem;
    }
    
    .product-section-title {
        font-size: 2.2rem;
    }
    
    .product-section-description {
        font-size: 1.2rem;
    }
    
    .ayra-avatar-container {
        --avatar-size: 15vh; /* Use vh on mobile */
        --scale: calc(var(--avatar-size, 15vh) / 20vh); /* Normalize to 20vh as base */
        bottom: 1vw;
        left: 1vw;
    }
    
    .ayra-avatar-frame {
        border-radius: max(calc(0.4vw * var(--scale)), 0.5vh) !important; /* Minimum rounded corners on mobile */
    }
    
    .ayra-avatar-image-container {
        border-radius: max(calc(0.3vw * var(--scale)), 0.4vh) !important; /* Minimum rounded corners on mobile */
    }
    
    .ayra-console-button {
        height: calc(var(--avatar-size, 15vh) * 0.12);
        font-size: clamp(0.55rem, 0.9vw, 0.8rem);
    }
    
    .container {
        padding-left: clamp(1rem, 2vw, 2rem);
        padding-right: clamp(1rem, 2vw, 2rem);
    }
    
    .hero-content {
        padding-left: clamp(0.5rem, 1.5vw, 1.5rem);
        padding-right: clamp(0.5rem, 1.5vw, 1.5rem);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero {
        padding-left: clamp(1rem, 2vw, 2rem);
        padding-right: clamp(1rem, 2vw, 2rem);
    }
    
    .tech-grid {
        gap: 2.5rem;
    }
    
    .tech-card {
        padding: 2.5rem 2rem;
    }
    
    /* Ensure scroll animations still work on tablets */
    .tech-card.scroll-fade-in {
        opacity: 0;
        transform: translateY(2rem);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .tech-card.scroll-fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .tech-card-header {
        margin-bottom: 1.75rem;
    }
    
    .tech-icon-wrapper {
        min-width: 6rem;
        height: 6rem;
    }
    
    .tech-logo-img {
        height: 5rem;
    }
    
    .tech-title {
        font-size: 1.4rem;
        margin-bottom: 1.125rem;
    }
    
    .tech-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* Smaller fonts on small phones */
    body {
        font-size: 0.85rem;
        padding-bottom: calc(3.5vw + 0.5vw + 0.5rem);
    }
    
    .hero {
        padding-bottom: calc(7rem + 3.5vw); /* More padding to ensure buttons are visible */
        min-height: 100vh; /* Ensure full viewport height to show both buttons */
        padding-top: 4rem; /* Extra top padding for mobile */
    }
    
    .hero-content {
        padding-bottom: 5rem; /* Extra padding after buttons to prevent parallax hiding */
    }
    
    .hero-text {
        padding-bottom: 2rem; /* Extra padding for text content */
    }
    
    .hero-buttons {
        gap: 2.5rem; /* Bigger gap between buttons on mobile */
        margin-top: 2rem; /* Extra top margin */
        margin-bottom: 7rem; /* Extra margin between bottom button and end of section */
    }
    
    .section {
        padding-bottom: calc(2rem + 3.5vw);
    }
    
    /* Add gap between products intro and product items on mobile */
    .products-intro {
        margin-bottom: 6rem;
    }
    
    .products-intro-text {
        font-size: 1rem;
    }
    
    .products-scroll-container {
        margin-top: 3rem;
    }
    
    .product-section-title {
        font-size: 1.8rem;
    }
    
    .product-section-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero {
        padding-bottom: calc(8rem + 3.5vw); /* More padding to ensure buttons are visible */
        min-height: auto; /* Allow content to determine height */
    }
    
    .hero-content {
        padding-bottom: 3rem; /* Extra padding for buttons */
    }
    
    .hero-text {
        padding-bottom: 2rem; /* Extra padding for text content */
    }
    
    .hero-buttons {
        gap: 2.5rem; /* Bigger gap between buttons on mobile */
        margin-top: 2rem; /* Extra top margin */
        margin-bottom: 5rem; /* Extra margin between bottom button and end of section */
    }
    
    .hero-content {
        padding-bottom: 4rem; /* Extra padding after buttons */
    }
    
    .ayra-avatar-container {
        --avatar-size: 15vh; /* Use vh on mobile */
        --scale: calc(var(--avatar-size, 15vh) / 20vh); /* Normalize to 20vh as base */
        bottom: 0.5vw;
        left: 0.5vw;
    }
    
    .ayra-avatar-frame {
        border-radius: max(calc(0.4vw * var(--scale)), 0.5vh) !important; /* Minimum rounded corners on mobile */
    }
    
    .ayra-avatar-image-container {
        border-radius: max(calc(0.3vw * var(--scale)), 0.4vh) !important; /* Minimum rounded corners on mobile */
    }
    
    .ayra-console-button {
        height: calc(var(--avatar-size, 15vh) * 0.12);
        font-size: clamp(0.5rem, 0.8vw, 0.7rem);
        padding-left: calc(0.25vw * var(--scale) * 1.5);
        padding-right: calc(0.25vw * var(--scale) * 1.5);
        padding-top: calc(0.15vw * var(--scale));
        padding-bottom: calc(0.15vw * var(--scale));
    }
    
    .container {
        padding-left: clamp(0.5rem, 1.5vw, 1.5rem);
        padding-right: clamp(0.5rem, 1.5vw, 1.5rem);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-content {
        padding-left: clamp(0.5rem, 1.5vw, 1.5rem);
        padding-right: clamp(0.5rem, 1.5vw, 1.5rem);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero {
        padding-left: clamp(1rem, 2vw, 1.5rem);
        padding-right: clamp(1rem, 2vw, 1.5rem);
    }
    
    .tech-grid {
        gap: 1.5rem;
    }
    
    .tech-card {
        padding: 1.5rem 1.25rem;
    }
    
    /* Ensure scroll animations still work on small phones */
    .tech-card.scroll-fade-in {
        opacity: 0;
        transform: translateY(2rem);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .tech-card.scroll-fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .tech-card-header {
        margin-bottom: 1.25rem;
    }
    
    .tech-icon-wrapper {
        min-width: 4rem;
        height: 4rem;
    }
    
    .tech-logo-img {
        height: 3.5rem;
    }
    
    .tech-title {
        font-size: 1.2rem;
        margin-bottom: 0.875rem;
    }
    
    .tech-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .ayra-help-panel {
        width: 90vw;
        height: 70vh;
        max-width: 95vw;
        max-height: 85vh;
    }
    
    .ayra-help-title {
        font-size: 1.2rem;
    }
    
    .ayra-help-icon {
        font-size: 1.3rem;
    }
    
    .ayra-tab {
        font-size: 0.9rem;
        padding: 0.8vh 1vw;
    }
    
    .ayra-message-content {
        font-size: 0.9rem;
    }
    
    .ayra-input {
        font-size: 0.9rem;
    }
    
    .ayra-send-button {
        font-size: 0.85rem;
    }
}




