/* Hestia Robotics V2 Design System - Matching Designer's Styles */

/* ============================================
   BASE STYLES
   ============================================ */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6,
button {
    text-transform: uppercase;
    font-weight: 700;
}

p,
li,
label {
    font-family: 'Open Sans', sans-serif;
}

button {
    text-transform: uppercase;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.default-image {
    object-fit: cover;
    width: 100%;
    height: auto;
}

.full-width-btn {
    width: 100%;
}

.section-row {
    margin-top: 60px;
}

.subsection-row {
    margin-top: 40px;
}

.section-title {
    padding-bottom: 30px;
}

.section-header {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.section-wrapper {
    padding-bottom: 40px;
}

.no-pad {
    padding: 0 !important;
}

.text-20 {
    font-size: 20px;
}

/* ============================================
   HESTIA BUTTON COMPONENT
   ============================================ */
.hestia-btn {
    background-color: #48b6f8;
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 10px;
    font-family: 'Dosis', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.hestia-btn:hover {
    background-color: #1171ad;
    color: #ffffff;
}

/* ============================================
   HERO SECTION - COFFEE HAND ANIMATION
   ============================================ */
.hero-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
}

.coffee-hand-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
}

.coffee-hand-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.coffee-hand-layer.middle {
    animation: slideInRight 1.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.white-mask {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    padding: 0;
    background: white;
    margin-left: var(--mask-margin, 100%);
    transition: margin-left 0.3s ease;
}



/* ============================================
   ROBOT CONTAINER (for product images)
   ============================================ */
.robot-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: visible;
}

.angle-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background-color: #e0c08e;
    clip-path: polygon(0 0, 50% 0, 100% 100%, 0% 100%);
    z-index: 1;
    display: inline-flex;
    justify-content: start;
    align-content: start;
    align-items: center;
}

.robot-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 70%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* ============================================
   CASE STUDY CARDS (hover effects)
   ============================================ */
.case-study-card {
    height: 350px;
    cursor: pointer;
    position: relative;
}

.case-study-card img {
    transition: transform 0.3s ease;
    height: 100%;
    object-fit: cover;
}

.case-study-card:hover img {
    transform: scale(1.05);
}

.hover-overlay {
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    height: 80px;
    background-color: white;
    transition: bottom 0.3s ease;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
    z-index: 10;
}

.case-study-card:hover .hover-overlay {
    bottom: 0;
}

.overlay-content {
    transform: translateY(5px);
}

/* ============================================
   VIDEO CONTAINER (16:9 responsive)
   ============================================ */
.video-16x9 {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
}

.video-16x9::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 9/16 * 100% */
}

.video-16x9 > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   PRODUCT IMAGES
   ============================================ */
.top-schematic-img {
    max-width: 240px;
}

/* ============================================
   NAVBAR - PROFESSIONAL HEADER STYLING
   ============================================ */
#mainNavbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    z-index: 1050;
}

#mainNavbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar-image {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

#mainNavbar.scrolled .navbar-image {
    height: 42px;
}

.navbar-brand.hover-scale:hover .navbar-image {
    transform: scale(1.02);
}

#mainNavbar .nav-link {
    font-family: 'Dosis', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #2d3748;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

#mainNavbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #48b6f8, #1171ad);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#mainNavbar .nav-link:hover {
    color: #48b6f8;
}

#mainNavbar .nav-link:hover::after {
    width: 70%;
}

#mainNavbar .nav-link.btn {
    border-radius: 8px;
    background: linear-gradient(135deg, #48b6f8 0%, #1171ad 100%);
    border: none;
    padding: 0.6rem 1.5rem !important;
    box-shadow: 0 4px 15px rgba(72, 182, 248, 0.3);
    transition: all 0.3s ease;
}

#mainNavbar .nav-link.btn::after {
    display: none;
}

#mainNavbar .nav-link.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 182, 248, 0.4);
    color: #fff;
    background: linear-gradient(135deg, #5ac4ff 0%, #1a85c7 100%);
}

.navbar-toggler {
    border: 2px solid #48b6f8;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(72, 182, 248, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2348b6f8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   FOOTER - MODERN PROFESSIONAL STYLING
   ============================================ */
.footer {
    background: linear-gradient(180deg, #1a2332 0%, #0f1620 100%);
    color: #e2e8f0;
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer-logo {
    height: 45px;
    width: auto;
    filter: brightness(1.1);
}

.footer-description {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-title {
    font-family: 'Dosis', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #48b6f8, #1171ad);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: #48b6f8;
    margin-right: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #48b6f8;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    width: 10px;
    margin-right: 8px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0aec0;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 1.1rem;
}

.social-link:hover {
    color: #fff;
    background: rgba(72, 182, 248, 0.15);
    border-color: #48b6f8;
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

.footer-legal {
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal:hover {
    color: #48b6f8;
}

/* ============================================
   MOBILE RESPONSIVE - HEADER & FOOTER
   ============================================ */
@media (max-width: 991px) {
    #mainNavbar .navbar-collapse {
        background: #fff;
        margin-top: 0.75rem;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    #mainNavbar .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
    }

    #mainNavbar .nav-link:hover {
        background: rgba(72, 182, 248, 0.1);
    }

    #mainNavbar .nav-link::after {
        display: none;
    }

    #mainNavbar .nav-link.btn {
        margin-top: 0.5rem;
        text-align: center;
    }

    .footer {
        padding-top: 3rem;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }

    .footer-links a:hover {
        transform: none;
    }
}

@media (max-width: 575px) {
    .navbar-image {
        height: 40px;
    }

    #mainNavbar.scrolled .navbar-image {
        height: 36px;
    }

    .footer-logo {
        height: 38px;
    }
}

