* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: 244 171 23;
    --color-primary-dark: 196 137 15;
    --color-primary-light: 255 201 77;
    --color-accent: 255 214 92;
    --color-primary-contrast: 14 22 41;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020617;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader-circle {
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: rgb(var(--color-primary));
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
}

.loader-circle:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px;
    border-top-color: rgb(var(--color-accent));
    animation-direction: reverse;
    animation-duration: 0.8s;
}

.loader-circle:nth-child(3) {
    width: 20px;
    height: 20px;
    top: 20px;
    left: 20px;
    border-top-color: rgb(var(--color-primary-light));
    animation-duration: 0.6s;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #0F172A;
}

::-webkit-scrollbar-thumb {
    background: rgb(var(--color-primary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--color-primary-dark));
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== HAMBURGER ===== */
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== DROPDOWN ===== */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== MOBILE DROPDOWN ===== */
.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown-content.open {
    max-height: 300px;
}

/* ===== HERO ===== */
.hero-gradient {
    background: linear-gradient(135deg, #020617 0%, #0F172A 50%, #1E293B 100%);
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, rgb(var(--color-primary)), rgb(var(--color-accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== FLOAT ANIMATION ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-delay {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-delay {
    animation: float-delay 5s ease-in-out infinite 1s;
}

/* ===== NAVBAR SCROLL ===== */
.navbar-scrolled {
    background: rgba(2, 6, 23, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== SERVICE CARD ===== */
.service-card {
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgb(var(--color-primary) /0.15);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgb(var(--color-primary)), rgb(var(--color-accent)));
    color: rgb(var(--color-primary-contrast));
}

/* ===== COUNTER SHIMMER ===== */
.counter-box {
    position: relative;
    overflow: hidden;
}

.counter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgb(var(--color-primary) /0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* ===== PORTFOLIO ===== */
.portfolio-item img {
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* ===== TESTIMONIAL SLIDER ===== */
.testimonial-slider {
    transition: transform 0.5s ease;
}

/* ===== BLOG CARD ===== */
.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-image img {
    transition: transform 0.5s ease;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== TYPING CURSOR ===== */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: rgb(var(--color-primary));
    animation: blink 1s infinite;
    margin-left: 2px;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, rgb(var(--color-primary)), rgb(var(--color-accent)));
    border-radius: 2px;
}

/* ===== PULSE GLOW ===== */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgb(var(--color-primary) /0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgb(var(--color-primary) /0);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* ===== MARQUEE ===== */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-track {
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* ===== PARTICLE ===== */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgb(var(--color-primary));
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float 8s infinite ease-in-out;
}

@keyframes particle-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    25% {
        transform: translate(50px, -30px) scale(1.5);
        opacity: 0.6;
    }

    50% {
        transform: translate(-20px, -60px) scale(1);
        opacity: 0.3;
    }

    75% {
        transform: translate(30px, -20px) scale(1.2);
        opacity: 0.5;
    }
}

/* ===== TEAM CARD ===== */
.team-card:hover .team-social {
    opacity: 1;
    transform: translateY(0);
}

.team-social {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* ===== IMAGE OVERLAY ZOOM ===== */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.08);
}

html, body {
  overflow-x: hidden;
}

/* ===== ARBIX CRYPTO EXTENSIONS ===== */
body {
  padding-top: 2.25rem;
}

.hero-chart-canvas {
  opacity: 0.35;
  pointer-events: none;
}

.trading-panel canvas {
  display: block;
  width: 100%;
}

.price-ticker {
  font-variant-numeric: tabular-nums;
}

.ticker-scroll {
  scrollbar-width: none;
}

.ticker-scroll::-webkit-scrollbar {
  display: none;
}

.faq-content {
  animation: faqOpen 0.25s ease;
}

@keyframes faqOpen {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-btn[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.exchange-badge {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exchange-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgb(var(--color-primary) /0.12);
}

.lang-switcher .lang-link {
  text-decoration: none;
}

.hero-typed-wrap {
  display: inline-block;
  vertical-align: bottom;
  min-height: 1.2em;
}

.hero-typed-wrap--full {
  display: block;
  min-height: 2.6em;
  margin-top: 0.15em;
}

@media (min-width: 640px) {
  .hero-typed-wrap--full {
    min-height: 1.3em;
    display: inline-block;
  }
}

#typed-text {
  white-space: nowrap;
}

.hero-typed-wrap--full #typed-text {
  white-space: normal;
}

#navbar.navbar-scrolled {
  background: rgba(2, 6, 23, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== INNER PAGES ===== */
.page-header {
  background: linear-gradient(135deg, #020617 0%, #0F172A 40%, #1E293B 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--color-primary) /.15), transparent 70%);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--color-accent) /.1), transparent 70%);
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgb(var(--color-primary));
  border-radius: 50%;
  opacity: .3;
  animation: pf 8s infinite ease-in-out;
}

@keyframes pf {
  0%, 100% { transform: translate(0, 0); opacity: .3; }
  50% { transform: translate(-20px, -40px); opacity: .6; }
}

.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform .5s; }
.img-zoom:hover img { transform: scale(1.05); }

.counter-box {
  position: relative;
  overflow: hidden;
  transition: all .3s;
}

.counter-box:hover {
  transform: translateY(-5px);
  border-color: rgb(var(--color-primary) /.3);
}

.value-card { transition: all .4s ease; }
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgb(var(--color-primary) /.12);
  border-color: rgb(var(--color-primary) /.3);
}
.value-card:hover .value-icon {
  background: linear-gradient(135deg, rgb(var(--color-primary)), rgb(var(--color-accent)));
  color: rgb(var(--color-primary-contrast));
  transform: scale(1.1);
}
.value-icon { transition: all .3s; }

.leader-card { transition: all .4s ease; }
.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgb(var(--color-primary) /.1);
}

.team-card { transition: all .4s ease; }
.team-card:hover { transform: translateY(-6px); }
.team-card:hover .team-img img { transform: scale(1.08); }
.team-img img { transition: transform .5s; }
.team-card:hover .team-overlay { opacity: 1; }

.feature-item { transition: all .3s; }
.feature-item:hover {
  border-color: rgb(var(--color-primary) /.3);
  transform: translateY(-2px);
}

.pricing-card {
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgb(var(--color-primary) /.15);
}
.pricing-card.popular {
  border-color: rgb(var(--color-primary) /.5);
  box-shadow: 0 20px 50px rgb(var(--color-primary) /.12);
}
.pricing-card.popular:hover {
  box-shadow: 0 35px 70px rgb(var(--color-primary) /.2);
}