/*
* Optimaly s.r.o. - Firemní webové stránky
* Copyright (c) 2025 Optimaly s.r.o. Všechna práva vyhrazena.
*/

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    background: url('/img/optimaly/OptimalyLogoBezPozadi.png');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.9) 0%, rgba(44, 62, 80, 0.8) 80%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 700;
    line-height: 1.2;
}

h4 {
    margin-bottom: 1rem;
    color: #343a40;
    position: relative;
    display: inline-block;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 15px;
}

a {
    color: var(--optimaly-blue);
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

a:hover {
    color: var(--optimaly-dark);
    text-decoration: none;
}

.bg-primary {
    background: var(--optimaly-blue) !important;
}

.text-primary {
    color: var(--optimaly-blue) !important;
}

.bg-dark {
    background-color: #343a40 !important;
}

.text-dark {
    color: #343a40 !important;
}

.bg-light {
    background-color: transparent !important;
}

.section-padding {
    padding: 60px 0;
    position: relative;
}

/* White sections */
.section-white {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    z-index: 0;
}

/* Section-white text colors */
.section-white h2,
.section-white h3,
.section-white h4,
.section-white h5,
.section-white h6 {
    color: var(--optimaly-dark, #1a1a2e) !important;
}

.section-white p {
    color: #444 !important;
}

.section-white .section-title p {
    color: #555 !important;
}

/* Section-white contact elements */
.section-white .contact-info,
.section-white .contact-form {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.section-white .contact-item {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.section-white .contact-item:hover {
    background: rgba(255, 255, 255, 0.9) !important;
}

.section-white .contact-item i {
    color: var(--optimaly-blue) !important;
}

.section-white .contact-item h5 {
    color: #777 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.section-white .contact-item p,
.section-white .contact-item a {
    color: #333 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.section-white .contact-phone-item h3 {
    color: var(--optimaly-blue) !important;
}

.section-white .form-control {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ccc !important;
    color: #333 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.section-white .form-control::placeholder {
    color: #888 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.section-white .form-check-label {
    color: #333 !important;
}

.section-white .form-check-label a {
    color: var(--optimaly-blue) !important;
}

.section-white .contact-phone-item .btn-light {
    background: var(--optimaly-blue) !important;
    color: white !important;
    border-color: var(--optimaly-blue) !important;
}

.section-white .contact-phone-item .btn-light:hover {
    background: var(--optimaly-dark) !important;
    border-color: var(--optimaly-dark) !important;
    color: white !important;
}

.section-white .founder-contact-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-left: 4px solid var(--optimaly-gold) !important;
}

.section-white .founder-contact-info h6 {
    color: var(--optimaly-blue) !important;
    font-family: 'Montserrat', sans-serif !important;
}

.section-white .founder-contact-info p {
    color: #555 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.section-white .founder-contact-info small {
    color: #666 !important;
    font-family: 'Montserrat', sans-serif !important;
}

/* Transparent sections over gradient */
.section-transparent {
    background: transparent;
    color: white !important;
}

.section-transparent h2,
.section-transparent h3,
.section-transparent h4,
.section-transparent h5,
.section-transparent h6 {
    color: white !important;
}

.section-transparent p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.section-transparent ul,
.section-transparent li,
.section-transparent strong {
    color: white !important;
}

.section-transparent .alert {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

/* Light sections with white/light background */
.section-light {
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    color: #333 !important;
    position: relative;
}

.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
    color: var(--optimaly-dark, #1a1a2e) !important;
}

.section-light p {
    color: #555 !important;
}

.section-light .section-title p {
    color: #666 !important;
}

.section-light .contact-info,
.section-light .contact-form {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-light .contact-item {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.section-light .contact-item:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

.section-light .contact-item i {
    color: var(--optimaly-blue) !important;
}

.section-light .contact-item h5 {
    color: #888 !important;
}

.section-light .contact-item p,
.section-light .contact-item a {
    color: #333 !important;
}

.section-light .contact-phone-item h3 {
    color: var(--optimaly-blue) !important;
}

.section-light .form-control {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #333 !important;
}

.section-light .form-control::placeholder {
    color: #999 !important;
}

.section-light .form-check-label {
    color: #333 !important;
}

.section-light .form-check-label a {
    color: var(--optimaly-blue) !important;
}

/* Tlačítko ZAVOLAT HNED na světlém pozadí */
.section-light .btn-light {
    background: var(--optimaly-blue) !important;
    color: white !important;
    border-color: var(--optimaly-blue) !important;
}

.section-light .btn-light:hover {
    background: var(--optimaly-dark) !important;
    border-color: var(--optimaly-dark) !important;
}

/* Kontaktní karty - výraznější border */
.section-light .contact-item {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section-light .contact-item:hover {
    border-color: var(--optimaly-blue) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-light .founder-contact-card {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Founder fotka - border */
.section-light .founder-contact-photo {
    border: 3px solid #e0e0e0 !important;
}

.section-light .founder-contact-info h6 {
    color: var(--optimaly-blue) !important;
}

.section-light .founder-contact-info p {
    color: #666 !important;
}

.section-light .founder-contact-info small {
    color: #555 !important;
}

.section-title {
    margin-bottom: 60px;
    text-align: center;
}

.section-title h2 {
    font-size: 32px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title h2:before {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--optimaly-blue);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--optimaly-blue);
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
}

/* NAVBAR */
.nav-menu {
    padding: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-menu.is-scrolling {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0px 5px 23px 0px rgba(0, 0, 0, 0.1);
}

.nav-menu.menu-is-open {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0px 5px 23px 0px rgba(0, 0, 0, 0.1);
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    position: relative;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    padding-right: 15px !important;
    padding-left: 15px !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--optimaly-blue) !important;
}

.navbar-brand .logo {
    width: 190px;
}

/* HERO HEADER */
.hero-header {
    height: 100vh;
    min-height: 550px;
    position: relative;
    overflow: hidden;
    background: transparent;
    z-index: 10;
}

.hero-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(23, 162, 184, 0.9) 0%, rgba(44, 62, 80, 0.8) 80%);
    z-index: 2;
}

.hero-header .hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    -o-object-fit: contain;
    object-fit: contain;
    object-position: center center;
    z-index: 1;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* ABOUT */
.about-img {
    position: relative;
}

.about-img img {
    border-radius: 5px;
    box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--optimaly-blue);
}

.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* SERVICES */
.service-box {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(255, 255, 255, 0.1) inset;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2),
                0 4px 12px rgba(255, 255, 255, 0.2) inset;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.service-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--optimaly-blue);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.service-box h5 {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
    color: var(--optimaly-dark);
    font-weight: 600;
}

.service-box h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--optimaly-blue);
}

/* CLIENTS */
.client-box {
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.client-box img {
    max-width: 120px;
    margin-bottom: 1rem;
}

/* TESTIMONIALS */
.testimonial-box {
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.testimonial-box p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-box .author {
    display: flex;
    align-items: center;
}

.testimonial-box .author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.testimonial-box .author h6 {
    margin-bottom: 0;
}

.testimonial-box .author span {
    color: #6c757d;
    font-size: 12px;
}

/* CONTACT */
#contact {
    padding-bottom: 120px !important;
}

.contact-info {
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(255, 255, 255, 0.1) inset;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover:not(.contact-phone-item) {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item > i {
    font-size: 1.5rem;
    color: var(--optimaly-blue);
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-item:not(.contact-phone-item) > i {
    color: var(--optimaly-gold);
}

.contact-item-content {
    flex: 1;
    padding-left: 15px;
}

.contact-item h5 {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif;
}

.contact-item p {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif;
}

.contact-item p a {
    color: inherit;
}

/* Phone special styling */
.contact-phone-item {
    background: linear-gradient(135deg, var(--optimaly-blue) 0%, var(--optimaly-blue) 100%);
    color: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.contact-phone-item > i {
    color: white;
    font-size: 2rem;
    margin-top: 0;
}

.contact-phone-item h5 {
    color: rgba(255, 255, 255, 0.9);
}

.contact-phone-item h3 {
    color: white;
    font-size: 28px;
    margin-bottom: 10px;
}

.contact-phone-item .btn {
    width: 100%;
    margin-top: 10px;
}

/* Responsive contact items */
@media (max-width: 767px) {
    .contact-info {
        padding: 1.5rem;
    }
    
    .contact-item {
        padding: 0.75rem;
    }
    
    .contact-item > i {
        font-size: 1.25rem;
        min-width: 32px;
    }
    
    .contact-item h5 {
        font-size: 12px;
    }
    
    .contact-item p {
        font-size: 14px;
    }
    
    .contact-phone-item h3 {
        font-size: 24px;
    }
}

.contact-form .form-control {
    height: 50px;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(23, 162, 184, 0.2);
    color: var(--optimaly-dark);
    font-weight: 500;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--optimaly-blue);
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.15);
}

.contact-form textarea.form-control {
    height: 150px;
}

.contact-form .form-check-label {
    color: white !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.section-white .contact-form .form-check-label {
    color: #333 !important;
    text-shadow: none;
}

.contact-form .form-check-label a {
    color: var(--optimaly-blue) !important;
    text-decoration: underline;
    font-weight: 600;
}

.contact-form .form-check-label a:hover {
    color: var(--optimaly-gold) !important;
}

.founder-quote-text {
    color: var(--optimaly-dark) !important;
    font-weight: 500;
    font-style: italic;
}

/* FOOTER */
.footer {
    background:
        linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(23, 162, 184, 0.9) 100%),
        url('/img/optimaly/OptimalyLogoBezPozadi.png');
    background-attachment: fixed, fixed;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, contain;
    background-position: center center, center center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 60px 0 30px;
    position: relative;
    margin-top: 0;
    color: white;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--optimaly-blue), var(--optimaly-blue));
}

.footer a:hover {
    color: #ffffff !important;
    text-decoration: none;
}

.footer a:hover i.fa-angle-right {
    margin-right: 4px !important;
    margin-left: 4px;
}

.footer .me-2 {
    margin-right: 0.5rem !important;
}

.footer .me-3 {
    margin-right: 1rem !important;
}

.footer .mt-1 {
    margin-top: 0.25rem !important;
}

.footer .list-unstyled {
    list-style: none;
    padding-left: 0;
}

.footer .d-flex {
    display: flex !important;
}

.footer .align-items-center {
    align-items: center !important;
}

.footer .align-items-start {
    align-items: flex-start !important;
}

.footer .border-top {
    border-top: 1px solid !important;
}

.footer .border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer .pt-4 {
    padding-top: 1.5rem !important;
}

.footer h5,
.footer h6,
.footer p,
.footer li,
.footer a {
    color: white !important;
}

.footer a:hover {
    color: var(--optimaly-gold) !important;
}

@media (max-width: 767.98px) {
    .footer {
        padding: 40px 0 20px;
    }
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
    }
    
    .navbar-toggler:focus {
        outline: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .about-img {
        margin-bottom: 2rem;
    }
}

/* Button Styles */
.btn {
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--optimaly-blue);
    border-color: var(--optimaly-blue);
}

.btn-primary:hover {
    background-color: var(--optimaly-dark);
    border-color: var(--optimaly-dark);
}

.btn-outline-primary {
    color: var(--optimaly-blue);
    border-color: var(--optimaly-blue);
}

.btn-outline-primary:hover {
    background-color: var(--optimaly-blue);
    color: #fff;
}

.btn-outline-light {
    color: #fff;
    border-color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--optimaly-blue);
}

/* Animation Effects */
.wow {
    visibility: hidden;
}

/* Blockquote styling */
.blockquote {
    position: relative;
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--optimaly-blue);
    font-style: italic;
    border-radius: 4px;
}

.blockquote p {
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

.blockquote:before {
    content: "\201C";
    font-family: Georgia, serif;
    font-size: 60px;
    position: absolute;
    left: 10px;
    top: -10px;
    color: var(--optimaly-blue);
    opacity: 0.3;
}

/* Technology Icons */
.tech-icon-container {
    text-align: center;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 10px;
    background-color: transparent;
    position: relative;
}

.tech-icon-container:hover {
    transform: translateY(-5px);
    background-color: rgba(0, 86, 179, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    filter: grayscale(0%);
}

.tech-icon-container:hover .tech-icon {
    transform: scale(1.1);
    filter: grayscale(0%) saturate(1.2);
}

.tech-icon-container p {
    font-weight: 600;
    margin-bottom: 0;
    font-size: 14px;
    color: #333;
    transition: color 0.3s ease;
}

.tech-icon-container:hover p {
    color: var(--optimaly-blue);
}

/* Custom Tooltip */
.tech-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tech-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #2a5298;
}

.tech-tooltip strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #fff;
}

.tech-tooltip span {
    display: block;
    font-weight: 400;
    opacity: 0.9;
}

.tech-icon-container:hover .tech-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-15px);
}

/* Responsive tooltip */
@media (max-width: 767px) {
    .tech-tooltip {
        width: 180px;
        font-size: 12px;
    }
}

/* Timeline Process */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--optimaly-blue), var(--optimaly-blue));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(even) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(odd) {
    left: 50%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--optimaly-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(0, 86, 179, 0.3);
    z-index: 10;
}

.timeline-item:nth-child(even) .timeline-marker {
    right: -25px;
}

.timeline-item:nth-child(odd) .timeline-marker {
    left: -25px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2),
                0 4px 12px rgba(255, 255, 255, 0.2) inset;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.timeline-content h4 {
    background: var(--optimaly-blue);
    color: white !important;
    margin: 0;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 15px 15px 0 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    width: 100%;
    box-sizing: border-box;
}

.timeline-content .timeline-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 15px 25px 10px 25px;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 25px 25px 25px;
    line-height: 1.6;
}

.timeline-time i {
    margin-right: 5px;
}

/* Timeline arrows */
.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 16px;
    border: 10px solid transparent;
    border-left-color: rgba(255, 255, 255, 0.25);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 16px;
    border: 10px solid transparent;
    border-right-color: rgba(255, 255, 255, 0.25);
}

/* Responsive Timeline */
@media (max-width: 767px) {
    .timeline-container {
        padding: 0 15px;
        margin: 30px auto;
    }

    .timeline-line {
        left: 25px;
        transform: none;
        width: 2px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 65px;
        padding-right: 15px;
        text-align: left !important;
        left: 0 !important;
        margin-bottom: 30px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0 !important;
        text-align: left !important;
    }

    .timeline-marker {
        left: 0 !important;
        right: auto !important;
        width: 50px;
        height: 50px;
        font-size: 16px;
        z-index: 10;
        box-shadow: 0 3px 10px rgba(0, 86, 179, 0.3);
        transform: translateX(0);
    }

    .timeline-content {
        padding: 0;
        font-size: 14px;
    }

    .timeline-content h4 {
        font-size: 16px;
        margin: 0;
        padding: 10px 15px;
        text-align: center;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        min-height: 35px;
    }

    .timeline-content .timeline-time {
        margin: 12px 20px 8px 20px;
        font-size: 13px;
    }

    .timeline-content p {
        margin: 0 20px 20px 20px;
        font-size: 14px;
    }

    .timeline-content::after {
        left: -5px !important;
        right: auto !important;
        border-left-color: transparent !important;
        border-right-color: rgba(255, 255, 255, 0.25) !important;
        top: 16px;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .timeline-container {
        padding: 0 10px;
        margin: 20px auto;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        padding-left: 55px;
        padding-right: 10px;
        margin-bottom: 25px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
        font-size: 14px;
        left: -8px !important;
        transform: translateX(0);
    }

    .timeline-content {
        padding: 0;
        font-size: 13px;
        overflow: hidden;
    }

    .timeline-content h4 {
        font-size: 16px;
        padding: 15px 20px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        margin: 0 !important;
        width: 100%;
        box-sizing: border-box;
        line-height: 1.3;
    }

    .timeline-content .timeline-time {
        margin: 10px 15px 8px 15px;
        font-size: 12px;
    }

    .timeline-content p {
        margin: 0 15px 15px 15px;
        font-size: 13px;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--optimaly-blue) 0%, var(--optimaly-blue) 100%);
    padding: 100px 0 40px;
    margin-top: 0;
    color: white;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 30px;
    }
    
    .page-header h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item.active {
    color: white;
}

/* Portfolio Section */
.portfolio-box {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 86, 179, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.portfolio-content {
    padding: 30px;
}

.portfolio-content h4 {
    margin-bottom: 10px;
    color: #343a40;
}

.portfolio-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.portfolio-details small {
    display: block;
    margin-bottom: 5px;
}

.portfolio-item {
    display: none;
}

.portfolio-item.show {
    display: block;
}

/* Technologies Section */
.technologies-section {
    background-color: #f8f9fa;
    padding-bottom: 60px !important;
}

.technologies-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.technologies-row .tech-icon-container {
    flex: 1;
    min-width: 120px;
    max-width: 150px;
}

/* Responsive technologies */
@media (max-width: 991px) {
    .technologies-row {
        gap: 20px;
    }
    
    .technologies-row .tech-icon-container {
        min-width: 100px;
        max-width: 120px;
    }
}

@media (max-width: 767px) {
    .technologies-row {
        justify-content: center;
    }
    
    .technologies-row .tech-icon-container {
        flex: 0 0 30%;
    }
}

/* Mobile fix for background-attachment */
@media (max-width: 1024px) {
    body {
        background-attachment: scroll !important;
    }

    .footer {
        background-attachment: scroll, scroll !important;
    }
}

/* Features Styling */
.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-icon {
    min-width: 50px;
    padding-top: 5px;
}

.feature-icon i {
    display: inline-block;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon i {
    transform: scale(1.1);
}

.feature-content {
    padding-left: 15px;
}

.feature-content h5 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.feature-content p {
    margin-bottom: 0;
    color: #666;
    font-size: 14px;
}

