/* ============================================
   MODERN WSW WEBSITE STYLES - CARDS & BUTTONS ONLY
   NO FONT-WEIGHT/TEXT STYLING - Text styling handled by home.css
   ============================================ */

:root {
    --wsw-orange: #eea234;
    --wsw-orange-dark: #d4941f;
    --wsw-grey-dark: #495057;
    --wsw-grey-medium: #6c757d;
    --wsw-grey-light: #e9ecef;
    --wsw-grey-lighter: #f8f9fa;
    --wsw-text-dark: #2c3e50;
    --wsw-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   MODERN PAGE HEADER (Hero Section)
   ============================================ */
.modern-page-header {
    background: linear-gradient(135deg, var(--wsw-grey-dark) 0%, var(--wsw-grey-medium) 100%);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.modern-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

/* Page-specific background images */
.modern-page-header.page-materials {
    background-image: url('../images/gallery/pimg1.jpg');
}

.modern-page-header.page-contact {
    background-image: url('../images/gallery/bg.jpeg');
}

.modern-page-header.page-products {
    background-image: url('../images/gallery/pimg2.jpg');
}

.modern-page-header.page-services {
    background-image: url('../images/gallery/pimg3.jpg');
}

.modern-page-header.page-about {
    background-image: url('../images/gallery/bg-img-2.jpg');
}

.modern-page-header .container {
    position: relative;
    z-index: 2;
}

.modern-page-header h1 {
    font-family: 'Plateia', sans-serif;
    font-size: 3.5rem;
    color: var(--wsw-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    position: relative;
    z-index: 2;
}

.modern-page-header .lead {
    font-size: 1.25rem;
    color: var(--wsw-orange);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    position: relative;
    z-index: 2;
}

/* ============================================
   MODERN CARDS
   ============================================ */
.modern-card {
    background: var(--wsw-white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--wsw-grey-light);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--wsw-orange);
}

.modern-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.modern-card:hover .modern-card-img {
    transform: scale(1.05);
}

.modern-card-body {
    padding: 2rem;
}

.modern-card-title {
    font-family: 'Plateia', sans-serif;
    font-size: 1.5rem;
    color: var(--wsw-text-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-card-text {
    color: var(--wsw-grey-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ============================================
   MODERN BUTTONS
   ============================================ */
.btn-modern {
    background: linear-gradient(135deg, var(--wsw-orange) 0%, var(--wsw-orange-dark) 100%);
    color: var(--wsw-white);
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(238, 162, 52, 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 162, 52, 0.4);
    color: var(--wsw-white);
}

.btn-modern-outline {
    background: transparent;
    color: var(--wsw-orange);
    border: 2px solid var(--wsw-orange);
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-modern-outline:hover {
    background: var(--wsw-orange);
    color: var(--wsw-white);
    transform: translateY(-2px);
}

/* ============================================
   MODERN CONTACT FORM
   ============================================ */
.modern-contact-form {
    background: var(--wsw-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--wsw-grey-light);
}

.modern-form-group {
    margin-bottom: 1.5rem;
}

.modern-form-label {
    display: block;
    color: var(--wsw-text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-form-control {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid var(--wsw-grey-light);
    border-radius: 12px;
    background: var(--wsw-grey-lighter);
    transition: var(--transition);
    font-family: inherit;
    color: var(--wsw-text-dark);
}

.modern-form-control:focus {
    outline: none;
    border-color: var(--wsw-orange);
    background: var(--wsw-white);
    box-shadow: 0 0 0 4px rgba(238, 162, 52, 0.1);
    transform: translateY(-1px);
}

.modern-form-control::placeholder {
    color: var(--wsw-grey-medium);
    opacity: 0.7;
}

textarea.modern-form-control {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
}

select.modern-form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

/* ============================================
   MODERN SECTIONS
   ============================================ */
.modern-section {
    padding: 30px 0;
}

.modern-section-alt {
    background: var(--wsw-grey-lighter);
    padding: 30px 0;
}

.section-title,
h2.section-title,
h1.section-title,
h3.section-title {
    font-family: 'Plateia', sans-serif;
    font-size: 2.5rem;
    color: var(--wsw-text-dark);
    text-align: center;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--wsw-grey-medium);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--wsw-orange) 0%, var(--wsw-orange-dark) 100%);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

/* ============================================
   MODERN CONTACT INFO CARDS
   ============================================ */
.contact-info-card {
    background: var(--wsw-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--wsw-grey-light);
    transition: var(--transition);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--wsw-orange);
}

.contact-info-card h3 {
    font-family: 'Plateia', sans-serif;
    font-size: 1.5rem;
    color: var(--wsw-text-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--wsw-grey-light);
}

.contact-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-info-icon {
    color: var(--wsw-orange);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-info-content {
    flex: 1;
}

.contact-info-label {
    color: var(--wsw-text-dark);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-value {
    color: var(--wsw-grey-medium);
    font-size: 1rem;
}

.contact-info-value a {
    color: var(--wsw-orange);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info-value a:hover {
    color: var(--wsw-orange-dark);
    text-decoration: underline;
}

/* ============================================
   MODERN MATERIAL LIST
   ============================================ */
.material-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.material-item {
    background: var(--wsw-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--wsw-grey-light);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.material-item:nth-child(even) {
    background: var(--wsw-grey-lighter);
}

.material-item:hover {
    transform: translateX(8px);
    border-color: var(--wsw-orange);
    box-shadow: var(--shadow-md);
}

.material-item-title,
div.material-item-title,
.material-item-content .material-item-title {
    font-family: 'Plateia', sans-serif;
    font-size: 1.25rem;
    color: var(--wsw-text-dark);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.material-item-details {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 0.5rem;
}

.material-item-details li {
    color: var(--wsw-grey-medium);
    padding: 0.15rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.4;
}

.material-item-details li::before {
    content: '•';
    color: var(--wsw-orange);
    position: absolute;
    left: 0;
}

/* Material Item Cards with Images */
.material-item-card {
    background: #ffffff !important;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--wsw-grey-light);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.material-item-card:hover {
    transform: translateY(-5px);
    border-color: var(--wsw-orange);
    box-shadow: var(--shadow-md);
}

.material-item-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.material-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    padding: 0;
}

.material-item-card:hover .material-item-image img {
    transform: scale(1.05);
}

.material-item-content {
    padding: 1.5rem;
    padding-bottom: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff !important;
}

.material-item-card .material-item-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.material-item-card .material-item-details {
    margin-bottom: 0.75rem;
}

.material-item-card {
    position: relative;
}

.material-quote-btn {
    width: 100%;
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    margin-top: auto;
}

.material-item-card:hover .material-quote-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.material-quote-btn:hover {
    background: var(--wsw-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 162, 52, 0.4);
}

/* ============================================
   MODERN ALERT MESSAGES
   ============================================ */
.modern-alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.modern-alert.show {
    display: block;
}

.modern-alert-success {
    background: rgba(238, 162, 52, 0.1);
    border: 2px solid var(--wsw-orange);
    color: var(--wsw-orange-dark);
}

.modern-alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    color: #dc3545;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .modern-page-header {
        padding: 60px 0 50px;
    }
    
    .modern-page-header h1 {
        font-size: 2rem;
    }
    
    .modern-contact-form {
        padding: 2rem 1.5rem;
    }
    
    .modern-section,
    .modern-section-alt {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .modern-card-body {
        padding: 1.5rem;
    }
}

/* ============================================
   PAGE-SPECIFIC FUNCTIONAL STYLES
   ============================================ */

/* Wire Page - Navigation Active State */
.nav_material { 
    color: var(--wsw-orange) !important; 
}

/* Wire Page - Advantage Buttons */
.wire-advantages-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.advantage-btn {
    display: inline-block;
    background: var(--wsw-orange);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.advantage-btn:hover {
    background: var(--wsw-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Product Page - Platform Buttons */
.product-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
    margin-bottom: 0;
    justify-content: center;
    align-items: center;
    transition: margin-bottom 0.3s ease;
}

.material-item-card:hover .product-buttons {
    margin-bottom: 30px;
}

.material-item-card:hover .material-item-content {
    padding-bottom: 30px;
    transition: padding-bottom 0.3s ease;
}

.product-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e9ecef;
    padding: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
}

.product-platform-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--wsw-orange);
    text-decoration: none;
}

.product-platform-btn:hover .product-platform-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

.product-platform-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: transparent;
    padding: 0;
}

.product-platform-tooltip {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #2c3e50;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-platform-tooltip::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #2c3e50;
}

/* Contact Page - Blog Slider */
.blog-slider-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.blog-slider-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    }
    
.blog-slider-container {
    position: relative;
    overflow: hidden;
    height: 640px;
}

.blog-slider {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s ease-in-out;
    gap: 1.25rem;
    height: max-content;
}

.blog-card {
    width: 100%;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 300px;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.blog-card-image-wrapper {
    width: 100%;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f8f9fa;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.blog-card-title {
    font-size: 1.05rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.blog-card-link {
    color: #eea234;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    flex-shrink: 0;
}

.blog-card-link:hover {
    color: #d4941f;
}

.blog-slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.blog-slider-btn {
    background: #eea234;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    }
    
.blog-slider-btn:hover {
    background: #d4941f;
    transform: scale(1.1);
}

.blog-slider-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .wire-advantages-buttons {
        gap: 8px;
    }
    .advantage-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    .product-platform-btn {
        width: 55px;
        height: 55px;
    }
    .product-platform-tooltip {
        font-size: 0.75rem;
        padding: 6px 12px;
        top: -45px;
    }
    .blog-card {
        flex-direction: column;
        height: auto;
    }
    .blog-card-image-wrapper {
        width: 100%;
        height: 150px;
    }
    .blog-slider-container {
        height: auto;
        max-height: 600px;
    }
}
/* Import Roboto Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Hero Section - Video Carousel */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    background: #000;
    margin-bottom: 0;
    padding-bottom: 0;
}
.hero-video-container {
    position: absolute;
    top: -115px;
    left: 0;
    width: 100%;
    height: calc(100vh + 115px);
    z-index: 1;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    min-width: 100%;
    min-height: 100%;
    z-index: 1;
}

/* Desktop video - show on desktop, hide on mobile */
.hero-video-desktop {
    display: block;
}

/* Mobile video - hide on desktop, show on mobile */
.hero-video-mobile {
    display: none;
}
.hero-content {
    display: none; /* Hide all text content */
}

/* Static Text Overlay */
.hero-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1002;
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    visibility: visible !important;
    opacity: 1 !important;
    padding-bottom: 200px;
}
.hero-text-container {
    text-align: center;
    color: white;
    width: 100%;
    position: relative;
    height: auto;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 5%;
}
.hero-text-static {
    position: relative;
    width: 100%;
    z-index: 1003;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    font-family: 'Plateia', sans-serif;
    color: white;
    text-align: center;
}
.hero-text-static .hero-text-line {
    font-family: 'Plateia', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.8;
    margin: 0;
    margin-bottom: 0.3rem;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 0, 0, 0.6);
    color: white !important;
    display: block;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: auto;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        background: transparent;
        overflow: visible;
    }
    .hero-video-container {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        background: transparent;
        overflow: visible;
    }
    /* Hide desktop video, show mobile video */
    .hero-video-desktop {
        display: none;
    }
    .hero-video-mobile {
        display: block;
        position: relative;
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: fill;
        object-position: center center;
        background: transparent;
        margin: 0 !important;
        padding: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .hero-text-overlay {
        z-index: 1002 !important;
        display: flex !important;
        visibility: visible !important;
    }
    .hero-text-overlay {
        padding-bottom: 200px !important;
    }
    .hero-text-static .hero-text-line {
        font-size: 1.3rem;
        line-height: 1.8;
    }
    .hero-text-container {
        height: auto;
    }
}
@media (max-width: 480px) {
    .hero-section {
        height: auto;
        min-height: auto;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        background: transparent;
        overflow: visible;
    }
    .hero-video-container {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        background: transparent;
        overflow: visible;
    }
    /* Hide desktop video, show mobile video */
    .hero-video-desktop {
        display: none;
    }
    .hero-video-mobile {
        display: block;
        position: relative;
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: fill;
        object-position: center center;
        background: transparent;
        margin: 0;
        padding: 0;
    }
    .hero-text-overlay {
        z-index: 1002 !important;
        display: flex !important;
        visibility: visible !important;
    }
    .hero-text-overlay {
        padding-bottom: 200px !important;
    }
    .hero-text-static .hero-text-line {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    .hero-text-container {
        height: auto;
    }
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.feature-icon {
    font-size: 1.5rem;
    color: #eea234;
}
.feature-text h5 {
    margin: 0;
    font-weight: bold;
    font-size: 1rem;
}
.feature-text small {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
}
.stat-item {
    text-align: center;
    padding: 20px;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #eea234;
}
.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}
.about-section {
    padding: 30px 0;
    background: #f8f9fa;
}
.partners-section {
    padding: 30px 0;
    background: white;
}
.services-section {
    padding: 30px 0;
}
.testimonials-section {
    padding: 30px 0;
    background: #f8f9fa;
}
.products-section {
    padding: 30px 0;
}
.product-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}
.product-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.cta-section {
    background: #f8f9fa;
    padding: 30px 0;
    text-align: center;
}

/* Partners Section with Round Logos */
.partners-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
}
.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(238, 162, 52, 0.3), transparent);
}
/* Interactive Sales Section */
.sales-interactive-container {
    display: flex;
    gap: 15px;
    margin-top: 3rem;
    min-height: 300px;
    align-items: stretch;
}
.sales-button-card {
    flex: 0 0 25%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.sales-button-card:hover {
    flex: 0 0 55%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 10;
}
.sales-button-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    height: 100%;
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}
.sales-button-card:hover .sales-button-inner {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}
.sales-button-card:hover .sales-button-initial-actions {
    opacity: 0;
    pointer-events: none;
}
.sales-button-logo {
    width: 90px;
    height: 90px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}
.sales-button-card:hover .sales-button-logo {
    transform: scale(0.9);
}
.sales-button-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.sales-button-label {
    font-family: 'Plateia', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin-bottom: 15px;
}
.sales-button-initial-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}
.sales-initial-btn {
    background: #2c3e50;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}
.sales-initial-btn:hover {
    background: #eea234;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 162, 52, 0.3);
    color: white;
    text-decoration: none;
}
.sales-card-expanded {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 3;
}
.sales-button-card:hover .sales-card-expanded {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto;
}
.sales-card-expanded {
    pointer-events: none;
}
.sales-card-content {
    text-align: center;
}
.sales-expanded-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sales-expanded-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.sales-card-content h3 {
    font-family: 'Plateia', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sales-card-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}
.sales-card-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.sales-action-btn {
    background: #2c3e50;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}
.sales-action-btn:hover {
    background: #eea234;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 162, 52, 0.3);
    color: white;
    text-decoration: none;
}
@media (max-width: 768px) {
    .partners-section {
        padding: 40px 0;
    }
    .sales-interactive-container {
        flex-direction: column;
        gap: 20px;
    }
    .sales-button-card {
        flex: 1 1 100% !important;
        min-height: 200px;
    }
    .sales-interactive-container:hover .sales-button-card:not(:hover) {
        flex: 1 1 100% !important;
    }
    .sales-button-card:hover {
        flex: 1 1 100% !important;
    }
    .sales-button-logo {
        width: 80px;
        height: 80px;
    }
    .sales-card-content h3 {
        font-size: 1.3rem;
    }
    .sales-card-content p {
        font-size: 0.9rem;
    }
    .sales-card-actions {
        flex-direction: column;
    }
    .sales-action-btn {
        width: 100%;
    }
}
.btn-primary {
    background: #eea234;
    border: none;
}
.btn-primary:hover {
    background: #d4941f;
}
.testimonials-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
}
.testimonials-scroll {
    display: flex !important;
    transition: transform 0.6s ease-in-out;
    gap: 2rem;
    width: max-content;
    flex-wrap: nowrap;
}
.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    width: 480px !important;
    min-width: 480px !important;
    max-width: 480px !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #495057;
    line-height: 1.6;
}
.testimonial-author {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}
.testimonial-stars {
    color: #eea234;
}
@media (max-width: 991px) {
    .testimonial-card {
        width: 300px;
        min-width: 300px;
        max-width: 300px;
    }
}
@media (max-width: 768px) {
    .testimonial-card {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}
.service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
a .service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 6px 20px rgba(238, 162, 52, 0.4);
}
.service-card img {
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
.service-card .card-body {
    padding: 1.5rem;
}
@media (max-width: 768px) {
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
}
/* AI Chat Links - Clickable links in messages */
.ai-chat-link {
    color: #eea234 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(238, 162, 52, 0.3);
    transition: all 0.2s ease;
    cursor: pointer;
}
.ai-chat-link:hover {
    color: #d68910 !important;
    border-bottom-color: #eea234;
    text-decoration: none !important;
}
.message.assistant .ai-chat-link {
    display: inline-block;
    margin: 2px 0;
}

/* Floating Order Button */
.floating-order-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #333;
    color: #eea234;
    width: 56px;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    border-radius: 50%;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9998;
    font-family: 'Plateia', sans-serif;
    transition: width 0.4s ease, border-radius 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding: 0;
}
.floating-order-btn i {
    font-size: 1.3rem;
    transition: all 0.4s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-left: 0;
    width: 56px;
    min-width: 56px;
}
.floating-order-btn span,
.floating-order-btn .d-none {
    white-space: nowrap;
    margin-left: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(-10px);
    width: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}
.floating-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    background: #3a3a3a;
    color: #eea234;
    text-decoration: none;
    width: auto;
    padding-right: 22px;
    padding-left: 0;
    border-radius: 28px;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
}
.floating-order-btn:hover i {
    margin-left: 0;
}
.floating-order-btn:hover span,
.floating-order-btn:hover .d-none {
    opacity: 1;
    transform: translateX(0);
    width: auto;
}
@media (max-width: 768px) {
    .floating-order-btn {
        width: 50px;
        height: 50px;
        min-height: 50px;
        max-height: 50px;
    }
    .floating-order-btn i {
        font-size: 1.2rem;
        width: 50px;
        min-width: 50px;
    }
    .floating-order-btn:hover {
        width: 50px;
        padding: 0;
        border-radius: 50%;
        height: 50px;
        min-height: 50px;
        max-height: 50px;
    }
    .floating-order-btn:hover span,
    .floating-order-btn:hover .d-none {
        opacity: 0;
        width: 0;
    }
}

/* Chat Widget Styles */
.ai-chat-widget {
    position: fixed;
    bottom: 20px; /* Changed from 90px to 20px - bigger from bottom */
    right: 20px;
    width: 380px;
    height: 750px; /* Increased from 700px for more space */
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 99999;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.ai-chat-widget.closed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    visibility: hidden;
}

.ai-chat-widget:not(.closed) {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.ai-chat-header {
    background: #333;
    color: #eea234;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.ai-chat-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1em;
    margin-left: 10px;
}

.ai-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 80%;
    line-height: 1.4;
    font-size: 0.95em;
}

.message.assistant {
    background: #e9ecef;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.user {
    background: #eea234;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.ai-chat-input-area {
    padding: 0 !important;
    background: #f0f0f0 !important;
    border-top: 1px solid #e0e0e0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    flex-shrink: 0;
    min-height: auto !important;
    order: 2;
}

.ai-chat-input-area .input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 12px;
}

/* Input Container - Rounded box with white background */
.input-container {
    flex: 1 !important;
    display: flex !important;
    align-items: flex-end !important;
    background: white !important;
    border-radius: 20px !important;
    padding: 6px 10px !important;
    position: relative;
    min-width: 0;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    min-height: 38px !important;
}

.input-container #ai-chat-input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 5px 4px !important;
    outline: none !important;
    font-size: 0.95em !important;
    color: #333 !important;
    width: 100% !important;
    min-width: 0 !important;
    line-height: 1.5 !important;
    resize: none !important;
    overflow-y: auto !important;
    min-height: 26px !important;
    max-height: 120px !important;
    font-family: inherit !important;
    align-self: flex-end !important;
}

.input-container .recording-waveform {
    flex: 1;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    position: relative;
}

.input-container .recording-waveform canvas {
    width: 100%;
    height: 26px !important;
    border-radius: 13px;
}

.recording-text-overlay {
    position: absolute;
    top: -22px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 6;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
}

.recording-text-waving {
    display: inline-block;
    font-size: 0.7em;
    color: #eea234;
    font-weight: 600;
    white-space: nowrap;
    animation: wave-text 2s ease-in-out infinite;
    text-shadow: 0 1px 2px rgba(238, 162, 52, 0.3);
}

@keyframes wave-text {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-3px);
        opacity: 0.85;
    }
}

.input-container .input-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-container .input-icon {
    color: #666;
    font-size: 1.1em;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
}

.input-container .input-icon:hover {
    background-color: rgba(238, 162, 52, 0.1);
    color: #eea234;
}

/* Mic button states - recording, paused */
.input-container .input-icon.recording {
    background-color: rgba(238, 162, 52, 0.2);
    color: #eea234;
    animation: pulse-recording 1.5s ease-in-out infinite;
}

.input-container .input-icon.paused {
    background-color: rgba(238, 162, 52, 0.15);
    color: #eea234;
}

@keyframes pulse-recording {
    0%, 100% {
        background-color: rgba(238, 162, 52, 0.2);
    }
    50% {
        background-color: rgba(238, 162, 52, 0.35);
    }
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: all 0.2s;
}

.send-btn {
    background: #eea234 !important;
    color: white !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-shrink: 0;
    padding: 0 !important;
    margin: 0 !important;
    margin-left: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.send-btn:hover {
    background: #d4941f !important;
}

.icon-btn.send-btn {
    background: #eea234 !important;
    color: white !important;
}

.record-btn {
    background: #dc3545;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Voice Recording UI */
.voice-recording-ui {
    padding: 15px !important;
    background: white !important;
    border-top: 1px solid #eee !important;
    display: none !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0;
}

.voice-recording-ui:not([style*="display: none"]) {
    display: flex !important;
}

.recording-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dc3545;
    font-weight: bold;
}

.recording-pulse {
    width: 12px;
    height: 12px;
    background: #dc3545;
    border-radius: 50%;
    animation: recording-pulse 1.5s infinite;
}

@keyframes recording-pulse {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.waveform-container {
    width: 100%;
    max-width: 250px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#waveform-canvas {
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.recording-timer {
    font-size: 0.9em;
    color: #666;
    font-weight: bold;
}

#ai-mic-btn.listening {
    color: #28a745;
    animation: listening-pulse 2s infinite;
}

@keyframes listening-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* AI Chat Toggle Button Wrapper with Circular Text */
.ai-chat-toggle-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hide toggle button when widget is open - handled by JavaScript */
.ai-chat-toggle-wrapper.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.ai-chat-circular-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.circular-text-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    animation: rotate-circle 15s linear infinite;
}

.circular-text {
    font-size: 20px;
    font-weight: 900;
    fill: #eea234;
    letter-spacing: 3px;
    text-transform: uppercase;
    stroke: #eea234;
    stroke-width: 0.5px;
    paint-order: stroke fill;
}

@keyframes rotate-circle {
    0% {
        transform: rotate(-90deg);
    }
    100% {
        transform: rotate(270deg);
    }
}

.ai-chat-toggle {
    position: relative;
    width: 80px; /* Increased from 60px */
    height: 80px; /* Increased from 60px */
    background: #333;
    color: #eea234;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 2em; /* Increased from 1.5em */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.ai-chat-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    background: #3a3a3a;
    color: #eea234;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Quick Action Floating Buttons - REMOVED */

/* Typing Animation */
.typing-indicator {
    display: inline-block;
    padding: 5px 10px;
}

.typing-dots {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #eea234;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.6; }
    40% { transform: scale(1); opacity: 1; }
}

.typing-indicator span {
    display: inline-block;
    animation: wave 1.2s infinite ease-in-out;
    font-size: 0.9em;
    color: #666;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.1s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(4) { animation-delay: 0.3s; }
.typing-indicator span:nth-child(5) { animation-delay: 0.4s; }

/* Stop Audio Button */
.stop-audio-btn {
    display: none;
    margin-top: 8px;
    padding: 8px 16px;
    background: #eea234;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s;
    width: fit-content;
}

.stop-audio-btn[style*="display: flex"],
.stop-audio-btn[style*="display:block"] {
    display: flex !important;
    align-items: center;
    gap: 6px;
}

.stop-audio-btn:hover {
    background: #d4941f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(238, 162, 52, 0.3);
}

.stop-audio-btn i {
    margin-right: 4px;
}

/* Audio Playing Indicator */
.audio-playing-indicator {
    display: none;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(238, 162, 52, 0.1);
    border-radius: 8px;
    align-items: center;
    gap: 8px;
}

.audio-playing-indicator .typing-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.audio-playing-indicator .typing-dots span {
    width: 6px;
    height: 6px;
    background: #eea234;
    border-radius: 50%;
    animation: wave-pulse 1.2s infinite;
}

.audio-playing-indicator .typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.audio-playing-indicator .typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Speaking Indicator Above Input Area */
.ai-speaking-indicator {
    display: none;
    margin: 0;
    padding: 12px 15px;
    background: rgba(238, 162, 52, 0.15);
    border-top: 1px solid rgba(238, 162, 52, 0.2);
    border-bottom: 1px solid rgba(238, 162, 52, 0.2);
    flex-shrink: 0;
    order: 1; /* Place it between messages and input */
}

.speaking-content {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.speaking-content .typing-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.speaking-content .typing-dots span {
    width: 6px;
    height: 6px;
    background: #eea234;
    border-radius: 50%;
    animation: wave-pulse 1.2s infinite;
}

.speaking-content .typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.speaking-content .typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.speaking-text {
    flex: 1;
    color: #eea234;
    font-size: 0.9em;
    font-weight: 500;
}

.stop-speaking-btn {
    padding: 6px 12px;
    background: #eea234;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stop-speaking-btn:hover {
    background: #d4941f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(238, 162, 52, 0.3);
}

.stop-speaking-btn i {
    font-size: 0.85em;
}

@keyframes wave {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-4px); opacity: 1; }
}

/* Camera Modal Styles */
.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 999999 !important;
    position: relative;
}

.camera-modal-header {
    background: #333;
    color: #eea234;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
}

.camera-modal-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.camera-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-modal-body {
    padding: 20px;
}

.image-description-section {
    margin-top: 20px;
}

.image-description-section .image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: block;
    border: 1px solid #ddd;
}

.image-description-section textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 10px;
}

.image-description-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.image-description-section .camera-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 100px;
    white-space: nowrap;
}

.image-description-buttons {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.image-description-buttons .camera-btn {
    flex: 1;
}

.image-description-buttons .camera-btn.cancel {
    flex: 0 0 auto;
    min-width: 100px;
}

.image-description-section .camera-btn:not(.cancel) {
    background: #eea234;
    color: white;
}

.image-description-section .camera-btn:not(.cancel):hover {
    background: #d68910;
}

.image-description-section .camera-btn.cancel {
    background: #6c757d;
    color: white;
}

.image-description-section .camera-btn.cancel:hover {
    background: #5a6268;
}

.camera-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 0;
    width: 100%;
    clear: both;
}

/* Ensure proper spacing and no overlap */
.camera-modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-description-section {
    width: 100%;
    clear: both;
}

.image-description-buttons {
    display: flex !important;
    gap: 10px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-top: 10px !important;
}

.image-description-buttons .camera-btn {
    flex: 1;
    min-width: 0;
}

.image-description-buttons .camera-btn.cancel {
    flex: 0 0 auto;
    min-width: 100px;
}

.camera-option-btn {
    background: #eea234;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.camera-option-btn:hover {
    background: #d68910;
    color: white;
}

.camera-preview {
    text-align: center;
}

#camera-video {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.camera-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.camera-btn {
    background: #eea234;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s;
}

.camera-btn:hover {
    background: #d4941f;
}

.camera-btn.cancel {
    background: #6c757d;
}

.camera-btn.cancel:hover {
    background: #5a6268;
}

/* Voice Status Indicator */
.voice-status {
    position: absolute;
    top: 60px;
    left: 15px;
    right: 15px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    text-align: center;
    z-index: 1000;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: status-fade-in 0.3s ease-out;
}

@keyframes status-fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.voice-status.speaking {
    background: rgba(238, 162, 52, 0.9);
}

/* Voice Message Animations */
@keyframes wave-pulse {
    0%, 100% { height: 4px; opacity: 0.4; }
    50% { height: 16px; opacity: 1; }
}

.play-voice-btn:hover {
    background: #d4941f !important;
}

.wave-bar {
    animation: wave-pulse 1.5s infinite;
    animation-play-state: paused;
}

@media (max-width: 480px) {
    .ai-chat-toggle-wrapper {
        width: 90px;
        height: 90px;
        bottom: 15px;
        right: 15px;
    }
    
    .ai-chat-toggle {
        width: 70px;
        height: 70px;
        font-size: 1.8em;
    }
    
    .circular-text {
        font-size: 14px;
    }
    
    .ai-chat-widget {
        width: 90%;
        height: 85vh; /* Increased from 80vh for more space */
        bottom: 15px; /* Changed from 80px to 15px - bigger from bottom */
        right: 5%;
    }
    .message {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .camera-modal-content {
        width: 95%;
        margin: 10px;
    }
    .camera-options {
        flex-direction: column;
    }
    .voice-status {
        top: 50px;
        left: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 0.8em;
    }
    .voice-recording-ui {
        padding: 10px;
    }
    .waveform-container {
        max-width: 200px;
    }
}
