/* STELLRIDE Global Styles */
/* These styles are loaded globally across the website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Gidugu&family=Montserrat:wght@400;500;600;700&family=Oswald:wght@400;500&display=swap');

/* Reset and base styles */
* {
    box-sizing: border-box;
}

/* Reset Tilda default link styles */
#allrecords a {
    text-decoration: none !important;
}

/* Override specifically for header navigation */
.stellride-header__nav-item {
    color: #FFFFFF !important;
}

/* Body styles */
body {
    margin: 0;
    font-family: 'Gidugu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #0D1622;
    color: #FFFFFF;
}

/* Header Styles */
.stellride-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    background: rgba(13, 22, 34, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    font-family: 'Gidugu', sans-serif;
}

.stellride-header__left {
    display: flex;
    align-items: center;
}

.stellride-header__logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.stellride-header__nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.stellride-header__nav-item {
    text-decoration: none;
    font-size: 26px;
    font-weight: 400;
    font-family: 'Oswald', sans-serif;
    transition: opacity 0.3s ease;
    padding: 8px 4px;
    position: relative;
    letter-spacing: 0.02em;
}

.stellride-header__nav-item:hover {
    opacity: 0.7;
}

.stellride-header__nav-item--active {
    position: relative;
}

.stellride-header__nav-item--active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: #FFFFFF;
}

/* Action button styles */
.stellride-header__nav-item--action {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 10px 20px;
    margin-left: 20px;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.stellride-header__nav-item--action:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    opacity: 1;
}

.stellride-header__nav-item--action.stellride-header__nav-item--active::after {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .stellride-header {
        margin: 10px;
        padding: 0 20px;
        height: 70px;
    }
    
    .stellride-header__logo {
        height: 60px;
    }
    
    .stellride-header__nav {
        gap: 20px;
    }
    
    .stellride-header__nav-item {
        font-size: 20px;
        padding: 6px 8px;
    }
    
    .stellride-header__nav-item--action {
        padding: 8px 16px;
        margin-left: 10px;
    }
}

/* Lead Block Styles - Slider */
.stellride-lead {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: rgba(13, 22, 34, 0.8);
}

.stellride-lead__slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.stellride-lead__slide-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.stellride-lead__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.stellride-lead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
    z-index: 15;
}

.stellride-lead__scrolling-text {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 10;
}

.stellride-lead__text-content {
    display: flex;
    white-space: nowrap;
    animation: scrollText 350s linear infinite;
    font-size: 500px;
    font-weight: bold;
    font-family: 'Gidugu', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 25px;
    transition: transform 0.3s ease-out, font-size 0.3s ease-out;
}

.stellride-lead__text-item {
    margin-right: 50px;
    flex-shrink: 0;
}

@keyframes scrollText {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}



/* Responsive design for Lead Block */
@media (max-width: 768px) {
    .stellride-lead__scrolling-text {
        bottom: 40px;
        height: 200px;
    }
    
    .stellride-lead__text-content {
        font-size: 200px;
        animation: scrollText 150s linear infinite;
        letter-spacing: 8px;
    }
    
    .stellride-lead__text-item {
        margin-right: 30px;
    }
    
    .stellride-lead::after {
        height: 30%;
    }
}

/* About Block Styles */
.stellride-about {
    background: #000000;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.stellride-about__content {
    width: 100%;
    position: relative;
    z-index: 2;
}

.stellride-about__title {
    font-family: 'Gidugu', sans-serif;
    font-size: 82px;
    margin: 20px 0 20px 20px;
    text-align: left;
}

.stellride-about__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    text-align: left;
    margin: 0 0 60px 20px;
    opacity: 0.8;
    width: 70%;
}

.stellride-about__items {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0;
}

.stellride-about__item {
    width: calc(100% - 80px);
    height: 400px;
    position: relative;
    background: #0d1622cc;
    border-radius: 15px;
    padding: 20px;
    margin: 0 40px;
    overflow: visible;
    transition: background 0.3s ease;
}

.stellride-about__item:hover {
    background: #FFFFFF;
}

.stellride-about__item-code-text {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stellride-about__item:hover .stellride-about__item-code-text {
    opacity: 1;
}

.stellride-about__item-code-content {
    display: flex;
    white-space: nowrap;
    animation: scrollCode 180s linear infinite;
    font-size: 320px;
    font-weight: bold;
    font-family: 'Gidugu', sans-serif;
    color: rgba(128, 128, 128, 0.3);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 25px;
}

.stellride-about__item-code-item {
    margin-right: 50px;
    flex-shrink: 0;
}

@keyframes scrollCode {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.stellride-about__item-image-container {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    height: 500px;
    z-index: 3;
}

.stellride-about__item-content {
    position: relative;
    z-index: 1;
    width: calc(100% - 490px);
}

.stellride-about__item-title {
    font-family: 'Oswald', sans-serif;
    font-size: 48px;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.stellride-about__item:hover .stellride-about__item-title {
    color: #000000;
}

.stellride-about__item-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin: 0;
    opacity: 0.8;
    transition: color 0.3s ease;
}

.stellride-about__item:hover .stellride-about__item-description {
    color: #000000;
}

.stellride-about__item-image {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.stellride-about__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.stellride-about__item-image--bw {
    opacity: 1;
    z-index: 1;
}

.stellride-about__item-image--color {
    opacity: 0;
    z-index: 2;
}

/* Состояния при наведении обрабатываются через JavaScript */

/* Responsive design for About Block */
@media (max-width: 768px) {
    .stellride-about {
        padding: 10px;
    }
    
    .stellride-about__content {
        padding: 20px 0;
    }
    
    .stellride-about__title {
        font-size: 36px;
    }
    
    .stellride-about__subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .stellride-about__items {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stellride-about__item-title {
        font-size: 20px;
    }
}
