:root {
    --primary-color: #2A5DBB;
    --hover-color: #2A5DBB;
    --primary-dark: #1E4B94;
    --primary-light: #4B7FD1;
    --accent-color: #FF6B00;
    --accent-light: #FF9933;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --background-light: #F2F4F8;
    /*--background-light: #F0F4F9;*/
    /*--background-light: #E8F0F9;*/
    --background-white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    --footer-primary-dark: #1a365d;
    --footer-accent-color: #4299e1;
    --footer-text-light: #ffffff;
    --footer-divider-color: rgba(255, 255, 255, 0.2);
    --footer-font-main: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --footer-font-headings: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
    max-width: 100%;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    touch-action: none;
}

#preloader-logo {
    width: 150px;
    animation: pulseSpin 3s ease-in-out infinite;
}

@keyframes pulseSpin {
    0% { transform: scale(1) rotate(0); }
    50% { transform: scale(1.1) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

body:not(.loaded) {
    overflow: hidden;
    height: 100vh;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn i {
    font-size: 1.1rem;
}

.btn--primary {
    background: #ff6b00;
    color: white;
}

.btn--primary:hover {
    background: #ff8533;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
    color: white;
}

.btn--secondary {
    background: transparent;
    color: #2A5DBB;
    border: 2px solid #2A5DBB;
}

.btn--secondary:hover {
    background: #2A5DBB;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 93, 187, 0.3);
}

/* ===== HEADER ===== */
.header {
    background-color: #ffffff !important;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
}

.logo {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.1rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-list a {
    color: var(--primary-dark) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.3px;
    background: transparent;
    border: 1px solid var(--primary-color);
}

.nav-list a:hover {
    background: linear-gradient(135deg, rgba(42, 93, 187, 0.1), rgba(42, 93, 187, 0.2));
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(42, 93, 187, 0.1);
    color: var(--primary-dark) !important;
}

.nav-list a.active {
    background: linear-gradient(135deg, rgba(42, 93, 187, 0.2), rgba(42, 93, 187, 0.3));
    color: var(--primary-dark) !important;
    font-weight: 750;
    box-shadow: 0 4px 10px rgba(42, 93, 187, 0.15);
    transform: translateY(-2px);
}

.nav-list a::after {
    display: none;
}

.header__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switch {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 15px;
}

.flag-icon {
    width: 32px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.lang-flag:hover .flag-icon {
    transform: scale(1.15);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    opacity: 0.9;
}

.lang-flag.current-lang .flag-icon {
    cursor: default;
    border: 1px solid rgba(0,0,0,0.7);
}

.lang-flag.current-lang:hover .flag-icon {
    transform: none;
    box-shadow: none;
    opacity: 0.5;
}

/* ===== MOBILE MENU ===== */
.menu-toggle,
.close-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    z-index: 1001;
    font-size: 24px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    padding: 5rem 1.5rem 2rem;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

/* ===== HERO BASE STYLES ===== */
.hero {
    position: relative;
    padding: 10rem 0 8rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--text-light);
    overflow: hidden;
    isolation: isolate;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero--page {
    position: relative;
    padding: 10rem 0 8rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--text-light);
    overflow: hidden;
    isolation: isolate;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.particles__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(42, 93, 187, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 107, 0, 0.1) 0%, transparent 50%);
}

.hero__orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(42, 93, 187, 0.2), transparent 70%);
    top: -200px;
    right: -200px;
}

.orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, rgba(255, 107, 0, 0.1), transparent 70%);
    bottom: -200px;
    left: -200px;
}

.hero__grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__content {
    max-width: 600px;
    text-align: left;
}

.hero__title {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero__title-main {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    display: block;
    text-align: left;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    text-align: left;
}

.hero__badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.hero__badge i {
    color: var(--accent-color);
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* ===== HERO MOBILE STYLES ===== */
@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero__visual {
        order: -1;
        margin: 0 auto;
    }
    
    .hero__content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero__title,
    .hero__title-main,
    .hero__subtitle {
        text-align: center;
    }
    
    .hero__badges {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero,
    .hero--page {
        padding: 8rem 0 6rem;
        min-height: 500px;
    }
    
    .hero__grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero__content {
        order: 1;
        width: 100%;
    }
    
    .hero__visual {
        order: 2;
        margin: 1rem auto 0;
    }
    
    .hero__title-main {
        font-size: 2.2rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero__badges {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.8rem !important;
        width: 100% !important;
    }
    
    .hero__badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        padding: 0.6rem 1.2rem !important;
        background: rgba(255, 255, 255, 0.15) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 50px !important;
        color: white !important;
        font-size: 0.95rem !important;
        backdrop-filter: blur(5px) !important;
        width: auto !important;
        min-width: 200px !important;
        margin: 0 auto !important;
    }
    
    .hero__badge i {
        color: var(--accent-color) !important;
        font-size: 1.1rem !important;
    }
    
    .hero__image {
        max-width: 350px;
        margin-top: 2rem;
    }
    
    .hero__image img {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .hero__title-main {
        font-size: 1.8rem;
    }
    
    .hero__badge {
        min-width: 180px !important;
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    .hero__image {
        max-width: 280px;
    }
    
    .hero__image img {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .hero__image {
        max-width: 240px;
    }
    
    .hero__image img {
        max-height: 200px;
    }
}

/* ===== FLOATING ACTIONS ===== */
.floating-actions {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1s forwards;
}

.floating-actions .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.floating-actions .btn i {
    font-size: 1.2rem;
    margin: 0;
}

.floating-actions .btn span {
    display: none;
}

.floating-actions .btn--primary {
    background: var(--accent-color);
}

.floating-actions .btn--secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.floating-actions .btn:hover {
    transform: scale(1.1) translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.floating-actions .btn--primary:hover {
    background: var(--accent-light);
}

.floating-actions .btn--secondary:hover {
    background: var(--primary-color);
    color: white;
}

.floating-actions .btn {
    position: relative;
}

.floating-actions .btn:hover::after {
    content: attr(title);
    position: absolute;
    left: 60px;
    background: var(--primary-dark);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    pointer-events: none;
    z-index: 101;
}

.floating-actions .btn--primary:hover::after {
    background: var(--accent-color);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--footer-primary-dark);
    color: var(--footer-text-light);
    padding: 4rem 0 2rem;
    position: relative;
    font-family: var(--footer-font-main);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo-container {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--footer-divider-color);
}

.footer-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-columns {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1fr 0.8fr;
    gap: 2rem;
    position: relative;
}

.footer-column {
    padding: 0 1rem;
}

.footer-heading {
    font-family: var(--footer-font-headings);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading a,
.footer-heading a:visited,
.footer-heading a:active,
.footer-heading a:focus,
.footer-heading p {
    color: var(--footer-text-light);
    text-decoration: none;
}

.footer-heading a:hover {
    color: var(--accent-color);
    text-decoration: none;
    transform: translateX(5px);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--footer-accent-color);
}

.footer-company-info {
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-company-info p {
    margin: 0.5rem 0;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    text-align: left;
}

.footer-contact-item,
.footer-contact-item a,
.footer-contact-item a:link,
.footer-contact-item a:visited,
.footer-contact-item a:active,
.footer-contact-item a:focus,
.footer-contact-item p {
    color: var(--footer-text-light);
}

.footer-contact-item a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-contact-item a:hover {
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-item {
    margin-bottom: 0.8rem;
}

.footer-nav-link {
    color: var(--footer-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
}

.footer-nav-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-company-info a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-company-info a,
.footer-company-info a:link,
.footer-company-info a:visited,
.footer-company-info a:active {
    color: var(--footer-text-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-video {
    height: 220px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(252, 252, 252, 0.678));
    transition: transform 0.4s ease;
    animation: videoRestart 1s step-end infinite;
}

.footer-video:hover {
    transform: scale(1.05);
}

/* ===== RESPONSIVE STYLES ===== */
@media (min-width: 1201px) {
    .header__actions .btn--primary,
    .header__actions .btn--secondary {
        display: none !important;
    }
}

@media (max-width: 1400px) {
    .floating-actions {
        left: 10px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .header__content {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0.5rem 1rem !important;
    }
    
    .logo {
        grid-column: 1 !important;
        justify-self: start !important;
    }
    
    .logo img {
        height: 50px !important;
        width: auto;
    }
    
    .menu-toggle {
        grid-column: 3 !important;
        justify-self: end !important;
        display: block !important;
        padding: 12px !important;
        background: none;
        border: none;
        font-size: 32px !important;
        color: var(--primary-color);
        z-index: 1002;
        line-height: 1;
    }
    
    .menu-toggle i {
        font-size: 32px !important;
    }
    
    .main-nav,
    .header__actions:not(.mobile-menu .header__actions) {
        display: none !important;
    }
    
    .mobile-menu {
        background-color: #ffffff !important;
        padding: 6rem 2rem 2rem !important;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 32px !important;
        color: var(--primary-color);
        z-index: 1003;
        display: none;
        padding: 12px;
        line-height: 1;
    }
    
    .close-menu i {
        font-size: 32px !important;
    }
    
    .mobile-menu.active + .close-menu {
        display: block;
    }
    
    .mobile-menu .nav-list {
        display: flex;
        flex-direction: column;
        align-items: center !important;
        gap: 0.5rem;
        margin: 0 auto 2rem auto !important;
        padding: 0;
        list-style: none;
        width: 100%;
        max-width: 300px;
    }
    
    .mobile-menu .nav-list li {
        width: 100%;
        text-align: center !important;
    }
    
    .mobile-menu .nav-list a {
        display: block;
        padding: 0.8rem 0;
        font-size: 1.1rem;
        color: var(--text-dark);
        text-decoration: none;
        text-align: center !important;
        width: 100%;
    }
    
    .mobile-menu .header__actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem;
        margin: 2rem auto 0 auto !important;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
        width: 100%;
        max-width: 300px;
    }
    
    .mobile-menu .header__actions .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0.8rem 1.5rem;
        text-align: center;
        justify-content: center;
    }
    
    .mobile-menu .lang-switch {
        display: flex;
        justify-content: center !important;
        gap: 1rem;
        margin-top: 1rem;
        width: 100%;
    }
    
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    .floating-actions {
        display: none;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1rem;
    }
    
    .footer-column {
        padding: 0;
        text-align: center;
    }
    
    .footer-column:nth-child(1) { order: 1; }
    .footer-column:nth-child(2) { order: 2; }
    .footer-column:nth-child(3) { order: 3; }
    .footer-column:nth-child(4) { order: 4; }
    
    .footer-heading {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-nav-list {
        display: flex;
        flex-direction: column;
        align-items: left;
    }
    
    .footer-company-info {
        text-align: left;
    }
    
    .footer-contact-item {
        text-align: left;
    }
    
    .footer-robot {
        margin-top: 2rem;
        order: 5;
        text-align: center;
    }
    
    .footer-video {
        max-width: 200px;
        height: auto;
        margin: 0 auto;
    }
    
    .footer-nav-link:hover,
    .footer-heading a:hover {
        transform: none;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .logo img {
        height: 45px !important;
    }
    
    .menu-toggle {
        font-size: 28px !important;
        padding: 10px !important;
    }
    
    .menu-toggle i {
        font-size: 28px !important;
    }
    
    .close-menu {
        font-size: 28px !important;
    }
    
    .close-menu i {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px !important;
    }
}

/* Fade In Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Page load animation */
.hero__content,
.section-title,
.container h2 {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.hero__visual {
    animation: fadeInRight 0.8s ease-out forwards;
}


.hero__stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    justify-content: flex-start;
}

.stat {
    text-align: left;
}

.stat__number {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* ===== MOBILE MENU ===== */
.menu-toggle,
.close-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    z-index: 1001;
    font-size: 24px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    padding: 5rem 1.5rem 2rem;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

/* Initial mobile menu styles */
@media (max-width: 1200px) {
    .menu-toggle {
        display: block;
    }

    .main-nav,
    .header__actions:not(.mobile-menu .header__actions) {
        display: none;
    }

    .mobile-menu .header__actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .mobile-menu .btn {
        width: 100%;
        justify-content: center;
    }

    .mobile-menu .lang-switch {
        justify-content: center;
        margin-top: 1.5rem;
    }
}

/* Detailed mobile menu styles */
@media (max-width: 1200px) {
    .header__content {
        padding: 1rem 0;
    }

    .menu-toggle {
        display: block;
        position: relative;
        margin-left: auto;
        margin-right: 10px;
        z-index: 1002;
    }

    .logo {
        display: flex;
        align-items: center;
        flex: 1;
    }

    .logo img {
        height: 40px;
    }

    .main-nav {
        display: none;
    }

    .header__actions {
        display: none;
    }

    .mobile-menu .header__actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .mobile-menu .btn {
        width: 100%;
        justify-content: center;
        margin: 0.5rem 0;
    }

    .mobile-menu .lang-switch {
        margin-top: 1.5rem;
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Burger Icon & Close Button detailed styles */
@media (max-width: 1200px) {
    .menu-toggle {
        z-index: 1002;
        position: relative;
        display: block;
    }

    .mobile-menu.active ~ .menu-toggle {
        display: none;
    }

    .close-menu {
        display: none;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        background: rgba(0,0,0,0.05);
        border: none;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        z-index: 1003;
    }

    .mobile-menu.active + .close-menu {
        display: flex;
    }

    .close-menu i {
        font-size: 1.4rem;
        color: var(--primary-color);
    }

    .close-menu:active {
        transform: scale(0.95);
        background: rgba(0,0,0,0.1);
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        z-index: 1000;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 80px 20px 30px;
    }

    .mobile-menu.active {
        display: flex;
    }

    .mobile-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: linear-gradient(to bottom, var(--background-white), transparent);
        z-index: 1;
    }

    .mobile-menu .nav-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 0;
        text-align: center;
    }

    .mobile-menu .nav-list li {
        width: 100%;
    }

    .mobile-menu .nav-list a {
        display: block;
        padding: 12px 0;
        background: rgba(0,0,0,0.03);
        border-radius: 3px;
        transition: all 0.2s ease;
    }

    .mobile-menu .nav-list a:hover,
    .mobile-menu .nav-list a:active {
        background: rgba(0,0,0,0.05);
        transform: translateY(-2px);
    }

    .mobile-menu .header__actions {
        width: 100%;
        max-width: 300px;
        padding: 0;
        gap: 10px;
        align-items: center;
    }

    .mobile-menu .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 12px;
        justify-content: center;
        text-align: center;
    }

    .mobile-menu .lang-switch {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin-top: 15px;
        width: 100%;
        max-width: 300px;
        flex-wrap: wrap;
    }

    main {
        padding-top: 80px;
    }

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
}

/* Mobile menu specific styles for index.html structure */
@media (max-width: 1200px) {
    /* Header actions in mobile menu - using header-actions class */
    .mobile-menu .header-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px; /* Gap between buttons */
        width: 100%;
        max-width: 300px;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    /* Button styling */
    .mobile-menu .header-actions .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 12px;
        justify-content: center;
        text-align: center;
    }
    
    /* Specific gap between Demo and Login buttons */
    .mobile-menu .header-actions .btn--primary {
        margin-bottom: 8px; /* Creates gap between buttons */
    }
    
    /* Language switcher in mobile menu - centered */
    .mobile-menu .header-actions .lang-switch {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px; /* Space between flags */
        margin-top: 20px; /* Space above language switcher */
        width: 100%;
        flex-direction: row; /* Ensure horizontal layout */
    }
    
    /* Flag icons sizing */
    .mobile-menu .header-actions .flag-icon {
        width: 32px;
        height: 20px;
    }
    
    /* Ensure the language switcher container doesn't stack vertically */
    .mobile-menu .header-actions .lang-switch {
        flex-direction: row !important;
    }
    
    /* Override any existing styles that might affect the layout */
    .mobile-menu .header-actions .lang-switch a {
        display: inline-block;
        margin: 0 5px;
    }
}

/* ====================== SUBMENU UNDER PLATFORM ====================== */
.has-submenu {
    position: relative;
}

.has-submenu > a {
    position: relative;
    padding-right: 22px;
}

.has-submenu > a::after {
    content: "▼";
    font-size: 0.65rem;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.has-submenu:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
    opacity: 0.8;
}

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 999;
    margin-top: 8px;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    margin-top: 12px;
}

.submenu a {
    display: block;
    padding: 12px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s ease;
    white-space: nowrap;
    background: white;
    border: 1px solid rgba(42, 93, 187, 1);
}

/* Override any global active styles for submenu items */
.submenu a.active,
.submenu a.active-submenu {
    background: var(--background-light) !important; /* Force white background */
    color: var(--primary-dark) !important; /* Keep original text color */
    font-weight: 700 !important; /* Make bold */
    box-shadow: none !important; /* Remove any shadow */
    transform: none !important; /* Remove any transform */
    background-image: none !important; /* Remove any gradient */
}

/* First item - rounded top corners */
.submenu a:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Last item - rounded bottom corners */
.submenu a:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Items between first and last - no border radius */
.submenu a:not(:first-child):not(:last-child) {
    border-radius: 0;
}

/* Remove double borders between items */
.submenu a + a {
    margin-top: -1px;
}

.submenu a:hover {
    background: var(--background-light);
    color: var(--primary-color);
    border-color: rgba(42, 93, 187, 1);
    z-index: 1;
    position: relative;
}

/* Ensure hover doesn't override active background */
.submenu a.active:hover,
.submenu a.active-submenu:hover {
    background: var(--background-light) !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

/* Remove any pseudo-elements that might add backgrounds or borders */
.submenu a.active::before,
.submenu a.active::after,
.submenu a.active-submenu::before,
.submenu a.active-submenu::after {
    display: none !important;
    content: none !important;
}

/* ==================== MOBILE ==================== */
@media (max-width: 1200px) {
    .has-submenu {
        padding: 0;
    }
    
    .submenu {
        position: static;
        transform: none;
        background: transparent;
        border-radius: 0;
        margin: 8px 0 0 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
    }
    
    .submenu a {
        padding: 14px 30px;
        font-size: 1.05rem;
        background: rgba(42, 93, 187, 0.05);
        border: none;
        border-radius: 8px !important;
        margin-bottom: 2px;
    }
    
    /* Override mobile active state */
    .submenu a.active,
    .submenu a.active-submenu {
        background: rgba(42, 93, 187, 0.1) !important;
        font-weight: 700 !important;
        box-shadow: none !important;
        transform: none !important;
        background-image: none !important;
        color: var(--text-dark) !important;
    }
    
    /* Remove margin overlap on mobile */
    .submenu a + a {
        margin-top: 2px;
    }
    
    .has-submenu > a::after {
        display: none;
    }
}

/* ===== HERO RESPONSIVE FIX ===== */

/* Large Desktop (1200px and above) - Default styles already working */
/* No changes needed */

/* Desktop (1025px to 1199px) - Keep side by side */
@media (max-width: 1199px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Tablet Landscape (768px to 1024px) - Content on top, visual below */
@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Force content on top, visual below */
    .hero__content {
        order: 1 !important;
        max-width: 100%;
        text-align: center;
    }
    
    .hero__visual {
        order: 2 !important;
        margin: 0 auto;
        max-width: 500px;
    }
    
    /* Center align text on tablet */
    .hero__title,
    .hero__title-main,
    .hero__subtitle,
    .hero__stats {
        text-align: center;
        justify-content: center;
    }
    
    .hero__stats {
        justify-content: center;
    }
}

/* Mobile (767px and below) - Content on top, visual below */
@media (max-width: 767px) {
    .hero,
    .hero--page {
        padding: 8rem 0 5rem;
        min-height: auto;
    }
    
    .hero__grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero__content {
        order: 1 !important;
        width: 100%;
    }
    
    .hero__visual {
        order: 2 !important;
        margin: 1rem auto 0;
        max-width: 350px;
    }
    
    .hero__title-main {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero__stats {
        gap: 2rem;
        justify-content: center;
    }
    
    .hero__visual img {
        max-height: 250px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .hero__title-main {
        font-size: 1.8rem;
    }
    
    .hero__visual {
        max-width: 280px;
    }
    
    .hero__visual img {
        max-height: 200px;
    }
    
    .hero__stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .stat__number {
        font-size: 1.5rem;
    }
    
    .stat__label {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero__stats {
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center;
        gap: 1.5rem;
        width: 100%;
    }
    
    .stat {
        flex: 0 1 auto;
        min-width: 0;
    }
    
    .stat__number {
        font-size: 1.3rem;
        white-space: nowrap;
    }
    
    .stat__label {
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

/* For very small phones */
@media (max-width: 480px) {
    .hero__stats {
        gap: 1rem;
    }
    
    .stat__number {
        font-size: 1.1rem;
    }
    
    .stat__label {
        font-size: 0.7rem;
    }
}