/* ============================================
   LED РЎРѕСЋР· вЂ” Base Styles
   Reset, Typography, Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* в”Ђв”Ђ Reset в”Ђв”Ђ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

body.popup-open {
    overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* в”Ђв”Ђ Global Animated Background Canvas в”Ђв”Ђ */
.global-bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    max-width: none;
}

/* ── Hero Video Background (shared: about / locations / portfolio / contacts) ── */
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video-bg video {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    opacity: 0.75;
    /* Scale slightly to crop out any baked-in black borders in the video file */
    transform: scale(1.02);
}

.hero-video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.10) 50%,
        rgba(0, 0, 0, 0.35) 100%
    );
    z-index: 1;
}

/* Content sits above video overlay */
.about-hero > .container,
.locations-hero > .container,
.portfolio-hero > .container,
.contacts-hero > .container,
#partners-carousel > .container,
#partners-carousel > .marquee {
    position: relative;
    z-index: 2;
}


input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-blue-light);
}

ul,
ol {
    list-style: none;
}

/* в”Ђв”Ђ Typography в”Ђв”Ђ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    color: var(--text-primary);
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
    font-size: var(--fs-h4);
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.text-gradient {
    background: var(--gradient-brand-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.text-lime {
    color: var(--color-lime);
}

.text-orange {
    color: var(--color-orange);
}

.text-muted {
    color: var(--text-muted);
}

/* в”Ђв”Ђ Layout Utils в”Ђв”Ђ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.container--wide {
    max-width: var(--container-wide);
}

.section {
    padding-block: var(--section-padding);
    position: relative;
}

.section--dark {
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.section--gradient {
    background: var(--gradient-dark);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section__title {
    margin-bottom: var(--space-md);
}

.section__subtitle {
    font-size: var(--fs-body-lg);
    color: var(--text-secondary);
    max-width: 640px;
    margin-inline: auto;
}

/* в”Ђв”Ђ Grid в”Ђв”Ђ */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .grid--4,
    .grid--3,
    .grid--2 {
        grid-template-columns: 1fr;
    }
}

/* в”Ђв”Ђ Scrollbar в”Ђв”Ђ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-blue);
}

/* в”Ђв”Ђ Selection в”Ђв”Ђ */
::selection {
    background: rgba(0, 191, 255, 0.3);
    color: var(--text-primary);
}

/* в”Ђв”Ђ Visually Hidden в”Ђв”Ђ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* в”Ђв”Ђ Animations Base в”Ђв”Ђ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.animate-fade-in.is-visible {
    opacity: 1;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s var(--transition-spring);
}

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

/* в”Ђв”Ђ Loading fade в”Ђв”Ђ */
.page-loaded .animate-on-load {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.animate-on-load:nth-child(2) {
    transition-delay: 0.4s;
}

.animate-on-load:nth-child(3) {
    transition-delay: 0.6s;
}

.animate-on-load:nth-child(4) {
    transition-delay: 0.8s;
}