/* Global Styles */

:root {
    --main-color: #086A47;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-text: #6c757d;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar, .footer, .lang-btn {
        display: none !important;
    }
}

/* Accessibility Improvements */
:focus {
    outline: 2px solid #086A47;
    outline-offset: 2px;
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Modern Scrollbar */
/* Vendor prefixes are necessary for browser compatibility */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #086A47;
    border-radius: 5px;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body.ru-lang {
    font-family: 'Roboto Condensed', sans-serif;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.lang-btn {
    background: none;
    border: 1px solid #086A47;
    color: #086A47;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: #086A47;
    color: white;
}

.lang-btn:hover {
    opacity: 0.8;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    color: #333;
    line-height: 1.6;
}

/* Utility Classes */
.main-color {
    color: #086A47;
}

.cursor-pointer {
    cursor: pointer;
}

/* Preloader */
#preloader {
    background: #fff url('https://i.gifer.com/ZZ5H.gif') no-repeat center center;
    background-size: 50px;
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98) !important;
}

.nav-link {
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: #086A47 !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

/* Sections */
section {
    padding: 4rem 0;
    position: relative;
}

/* Home */
.home {
    height: 100vh;
    min-height: 600px;
    background-image: url('./imgs/homeImg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.home .container {
    position: relative;
    z-index: 1;
    color: white;
}

.home h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.home p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Section Title */
.section,
.logo h1,
.home h1 {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

.section::before,
.section::after {
    content: '';
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, rgba(8, 106, 71, 0), #086A47, rgba(8, 106, 71, 0));
    position: absolute;
    top: 50%;
    border-radius: 50%;
}

.section::before {
    left: calc(30% - 50px);
}

.section::after {
    right: calc(30% - 50px);
}

@media (max-width: 768px) {
    .section::before,
    .section::after {
        width: 50px;
    }
    
    .section::before {
        left: calc(25% - 25px);
    }
    
    .section::after {
        right: calc(25% - 25px);
    }
}

/* About me */
@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
  
.animated-img {
    animation: floating 3s ease-in-out infinite;
}

/* Achievements */
.achievements h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.achievements .main-color {
    font-size: 2rem;
}

/* Vibes */
.vibe-item {
    overflow: hidden;
    border-radius: 0.5rem;
    height: 300px;
    position: relative;
    margin-bottom: 1rem;
}

.vibe-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vibe-item:hover img {
    transform: scale(1.1);
}

.vibe-text {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #fff;
    font-weight: bold;
    width: 80%;
}

.downImg {
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .downImg {
        margin-top: 0;
    }
    .language-switcher {
        justify-content: flex-end;
    }
}

/* Blog Scroll Styles */
.blog-scroll-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 20px;
    margin-top: 30px;
}
  
.blog-scroll-wrapper {
    display: inline-flex;
    gap: 30px;
    padding: 10px 20px;
}
  
.blog-item {
    flex: 0 0 300px;
    transition: transform 0.3s ease;
}
  
.blog-item:hover {
    transform: translateY(-5px);
}
  
.blog-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
  
.blog-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
  
/* Scrollbar styles for blog section */
.blog-scroll-container::-webkit-scrollbar {
    height: 8px;
}
  
.blog-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
  
.blog-scroll-container::-webkit-scrollbar-thumb {
    background: #086A47;
    border-radius: 10px;
}
  
.blog-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #055a3a;
}
  
/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-item {
        flex: 0 0 250px;
    }
    
    .blog-item img {
        height: 180px;
    }
}
  
@media (max-width: 576px) {
    .blog-scroll-wrapper {
        gap: 20px;
    }
    
    .blog-item {
        flex: 0 0 220px;
    }
    
    .blog-item img {
        height: 150px;
    }
}

/* Testimonials */
.Testimonials h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.Testimonials .lead {
    font-size: 1.1rem;
    color: #6c757d;
}

.Testimonials .bg-light {
    padding: 2rem;
    border-radius: 0.5rem;
}

/* Footer */
.footer {
    padding: 2rem 0;
}

.footer p {
    margin-bottom: 0;
}

.footer a {
    color: #086A47;
    text-decoration: none;
}

.footer i {
    transition: all 0.3s ease;
}

.footer i:hover {
    transform: translateY(-3px);
}

/* Fullscreen Image */
#fullScreenImage {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#fullScreenImage img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
    transform: scale(0.9);
}

#fullScreenImage.show {
    opacity: 1;
}

#fullScreenImage.show img {
    transform: scale(1);
}

#closeButton {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

#closeButton:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* End Image */
.endImg {
    height: 100vh;
    width: 100%;
    background-image: url('./imgs/endImg.png');
    background-size: cover;
    position: absolute;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .home h1 {
        font-size: 2.5rem;
    }
    
    .home p {
        font-size: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .Testimonials h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-collapse {
        padding: 1rem 0;
    }
    
    .home {
        text-align: center;
    }
    
    .home .container {
        text-align: center !important;
    }
    
    .section::before,
    .section::after {
        display: none;
    }
    
    .Testimonials .row {
        flex-direction: column;
    }
    
    .Testimonials .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .footer .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .endImg {
        height: 40vh;
        background-attachment: scroll;
    }
}

@media (max-width: 576px) {
    .home h1 {
        font-size: 2rem;
    }
    
    .vibe-item {
        height: 200px;
    }
    
    .blog img {
        height: 200px;
    }
    
    .Testimonials h1 {
        font-size: 1.8rem;
    }
    
    .footer h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 440px) {
    .navItems {
        flex-direction: column;
    }
}