/* Custom styles to complement Bootstrap */
:root {
    --primary-color: #0d6efd;  /* Bootstrap primary */
    --secondary-color: #f8f9fa; /* Bootstrap light */
    --accent-color: #fd7e14;    /* Bootstrap orange */
    --dark-color: #212529;      /* Bootstrap dark */
    --text-color: #212529;
    --border-color: #dee2e6;
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    --transition: all 0.3s ease;
}

/* Base styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* For fixed navbar */
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}

/* Language display control */
.ru {
    display: none;
}

body.lang-ru .ru {
    display: block;
}

body.lang-ru .en {
    display: none;
}

/* Header styles */
#header {
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.logo {
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

/* Custom divider */
.divider-custom {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.divider-custom-line {
    width: 100%;
    max-width: 7rem;
    height: 0.25rem;
    background-color: var(--border-color);
    border-radius: 1rem;
    margin: 0 1rem;
}

.divider-custom-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Section styling */
section {
    position: relative;
    overflow: hidden;
}

section:nth-child(odd) {
    background-color: var(--secondary-color);
}

/* Enhanced transitions */
.nav-link, .btn {
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
}

/* Card hover effects */
.card {
    transition: var(--transition);
    border-radius: 0.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .language-selector {
        position: relative;
        margin-bottom: 1rem;
        top: 0;
        right: 0;
        justify-content: center;
    }
    
    #header {
        padding-top: 1rem;
    }
}

/* Animation for section elements */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sticky nav adjustment */
.navbar.sticky-top {
    box-shadow: var(--shadow-sm);
}

/* Adjustments for long items in navbar */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Footer adjustments */
footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: white;
    text-decoration: underline;
}