/* InfoNeonBox.com - Main Style Sheet */

/* CSS Variables */
:root {
    --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --heading-font: "Raleway", sans-serif;
    --nav-font: "Poppins", sans-serif;
    --btn-grad-start: #011c3c;
    --btn-grad-end: #288ec5;
    --overlay-color: rgba(0, 0, 0, 0.5);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 200px;
}

body {
    font-family: var(--default-font);
}

.fade {
    opacity: 0;
    transition: opacity .8s ease-in-out;
}

.fade.show {
    opacity: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin: 0;
}

h5 {
    font-weight: 700;
    margin-top: 10px;
    font-size: 13px;
}

.h22 {
    margin: 0;
    font-size: 36px;
    font-family: var(--nav-font);
    color: #86f8ff;
    text-shadow: 0 0 1px #2cddb3, 0 0 6px #282828, 0 0 4px #0dcaf0, 0 0 5px #fff;
    animation: 3s ease-in-out infinite neonFade;
    font-weight: 700;
}

.lead {
    margin: 16px 0;
    font-size: 1rem;
}

.text-toska {
    color: #f8f8f8 !important;
}

small {
    font-size: 12px;
}

/* Buttons */
.btn-gradient {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, var(--btn-grad-start), var(--btn-grad-end));
    border: none;
    color: #fff;
    padding: .75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: .5rem;
    text-decoration: none;
    transition: opacity .3s, transform .3s;
}

.btn-gradient:focus,
.btn-gradient:hover {
    opacity: .9;
    transform: translateY(-2px);
}

.btn-outline-warning {
    --bs-btn-color: #1de9b6;
    --bs-btn-border-color: #ff318b;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #07ffff;
    --bs-btn-hover-border-color: #f707ff;
    --bs-btn-focus-shadow-rgb: 255, 193, 7;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #ffffff;
    --bs-btn-active-border-color: #ffffff;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #ffffff;
    --bs-gradient: none;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: opacity .3s;
    opacity: 0;
}

.floating-buttons.visible {
    opacity: 1;
}

.floating-buttons .btn {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
    transition: .3s;
}

.floating-buttons .btn:hover {
    transform: translateY(-3px);
}

/* Animations */
@keyframes jumbotronFloatFade {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    25% {
        opacity: 0.9;
        transform: translateY(-8px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    75% {
        opacity: 0.9;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.jumbotron-looping {
    animation: jumbotronFloatFade 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.jumbotron-looping.delayed {
    animation: jumbotronFloatFade 4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s infinite;
}

.jumbotron-looping.delayed-more {
    animation: jumbotronFloatFade 4s cubic-bezier(0.4, 0, 0.2, 1) 0.6s infinite;
}

@keyframes logoFloat {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.jumbotron-animated.loop {
    animation: logoFloat 3s ease-in-out infinite;
}

.jumbotron-animated {
    opacity: 0;
    transform: translateY(30px);
    animation: jumbotronFadeUp 1s ease forwards;
}

.jumbotron-animated.loop {
    animation: jumbotronFadeUp 1s ease forwards, jumbotronLoop 6s linear infinite;
}

@keyframes jumbotronFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes jumbotronLoop {
    0% { opacity: 1; }
    40% { opacity: 1; }
    50% { opacity: 0.5; }
    60% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes neonFade {
    0%, 100% {
        opacity: 1;
    }
    70% {
        opacity: .8;
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(29, 233, 182, 0.7), rgba(255, 49, 139, 0.7));
    backdrop-filter: blur(8px);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(29, 233, 182, 0.8), rgba(255, 49, 139, 0.8));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    animation: logoFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.nav-link.active {
    color: #ff07cd !important;
    font-weight: 700;
}

/* Jumbotron */
.jumbotron {
    position: relative;
    padding: 4rem 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 80vh;
    transition: background-image .3s ease-in-out;
    color: #fff;
}

.jumbotron.lazy-bg {
    background-image: none !important;
}

.jumbotron.loaded-bg {
    background-image: url('../images/hero-bg.webp') !important;
}

.jumbotron .content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 1rem;
}

.jumbotron .content > * {
    opacity: 0;
    transform: translateY(20px);
}

.jumbotron .content.show > * {
    animation: .5s ease-out forwards fadeSlideIn;
}

.jumbotron .content.show > :first-child {
    animation-delay: .1s;
}

.jumbotron .content.show > :nth-child(2) {
    animation-delay: .3s;
}

.jumbotron .content.show > :nth-child(3) {
    animation-delay: .5s;
}

/* Slideshow */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.slideshow-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Sections */
.section {
    scroll-margin-top: 100px;
    min-height: 100vh;
}

.features-section {
    color: #fff;
}

#about {
    background: linear-gradient(150deg, var(--btn-grad-start), var(--btn-grad-end));
}

/* Ensure About section text is white for readability */
#about, #about h1, #about h2, #about h3, #about h4, #about p, #about .lead {
    color: #fff !important;
}

#about a {
    color: #fff !important;
}

/* Feature Boxes */
.feature-box {
    border: 1px solid rgba(255, 255, 255, .2);
    padding: 20px 15px;
    border-radius: 10px;
    transition: .2s;
    background: rgba(255, 255, 255, .05);
}

.feature-box:hover {
    border-color: #00e5ff;
    background: rgba(0, 255, 255, .1);
    transform: translateY(-8px) scale(1.02);
}

.feature-box .icon i,
.icon i {
    font-size: 40px;
    color: #f04dff;
}

/* Portfolio */
.portfolio-item {
    height: 300px;
    transition: transform .1s;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .1s;
    border-radius: 1rem;
    pointer-events: none !important;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Gallery Enhancements */
.navbar {
    transition: all 0.3s ease;
    /* use new gradient colors with same visual opacity */
    background: linear-gradient(135deg, rgba(1, 28, 60, 0.7), rgba(40, 142, 197, 0.7));
    backdrop-filter: blur(8px);
}
.navbar.scrolled {
    background: linear-gradient(135deg, rgba(1, 28, 60, 0.8), rgba(40, 142, 197, 0.8));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-btn {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.nav-btn.prev {
    left: 20px;
}

.nav-btn.next {
    right: 20px;
}

.image-counter {
    font-size: 14px;
    color: white;
    font-weight: 500;
}

/* Modal */
.modal-content {
    max-width: 100%;
    overflow: hidden;
}

.w-100 {
    max-width: 420px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Bootstrap Overrides */
.mb-5 {
    margin-bottom: 0 !important;
}

.bg-dark {
    --bs-bg-opacity: 0.8;
    background-color: rgb(0 0 0) !important;
}

/* Responsive Design */
@media (min-width: 1200px) {
    .jumbotron {
        min-height: 100vh;
    }
    .feature-box {
        border: 1px solid rgba(255, 255, 255, .2);
        padding: 20px 10px;
        transition: .3s ease-in-out;
        border-radius: 8px;
        margin: 10px;
    }
}

@media (max-width: 992px) {
    .h22 {
        font-size: 30px;
        margin-top: 20px;
        padding-top: 95px;
    }
    .btn-gradient,
    .lead {
        font-size: 1rem;
    }
    .btn-gradient {
        padding: .6rem 1.2rem;
    }
    .jumbotron {
        padding: 10px 20px;
    }
    .feature-box {
        border: 1px solid rgba(255, 255, 255, .2);
        padding: 20px 10px;
        transition: .3s ease-in-out;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }
    .jumbotron .content {
        font-size: 90%;
    }
    .h22 {
        font-size: 28px;
        margin-top: 20px;
        padding-top: 85px;
    }
    .lead {
        font-size: .9rem;
    }
    .btn-gradient {
        font-size: 1rem;
        padding: .6rem 1.2rem;
    }
    .feature-box {
        border: 1px solid rgba(255, 255, 255, .2);
        padding: 20px 10px;
        transition: .3s ease-in-out;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .h22 {
        font-size: 38px;
        padding-top: 30px;
    }
    .lead {
        font-size: .9rem;
    }
    .btn-gradient {
        font-size: 1rem;
        padding: .6rem 1.2rem;
    }
    .feature-box {
        border: 1px solid rgba(255, 255, 255, .2);
        padding: 20px 10px;
        transition: .3s ease-in-out;
        border-radius: 8px;
    }
    .jumbotron {
        background: url('../images/hero-bg-m.webp') center center/cover no-repeat;
    }
}