/* 
index CSS File
 */

/* ============================================
   VIDEO BANNER - Professional Full-Width Cover
   ============================================ */
.video-banner {
    position: relative;
    width: 100vw;
    height: 50vh;
    min-height: 350px;
    max-height: 500px;
    overflow: hidden;
    background: #1a1a2e;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.banner-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Fallback for browsers that support object-fit well */
@supports (object-fit: cover) {
    .banner-video {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none;
        object-fit: cover;
        object-position: center center;
    }
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.7) 0%,
        rgba(41, 95, 121, 0.5) 50%,
        rgba(117, 183, 211, 0.4) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem;
    z-index: 1;
}

.banner-overlay h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.banner-overlay p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    opacity: 0.95;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4);
    max-width: 600px;
}

/* Legacy header (kept for compatibility) */
.header {   
    display: none;
}

/* ============================================
   STATS GRID
   ============================================ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: clamp(2rem, 4vh, 3rem);
}

.stat-card {
    background: linear-gradient(135deg, #1f82a0 0%, #92d4f0 100%);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-card .number {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #fffdfd;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-card .label {
    color: #000f30;
    font-weight: bold;
    font-size: clamp(1.2rem, 2vw, 1rem);
    text-align: center;
}



/* ============================================
   CALL TO ACTION SECTION
   ============================================ */
.cta-card {
    background: linear-gradient(135deg, #295f79 0%, #75b7d3 100%);
    color: #ffffff;
    text-align: center;
    padding: clamp(2rem, 5vw, 3rem);
}

.cta-card h2 {
    color: #ffffff;
    margin-bottom: clamp(0.5rem, 2vh, 1rem);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-card p {
    margin-bottom: clamp(1rem, 3vh, 1.5rem);
    font-size: clamp(1rem, 2vw, 1.1rem);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1rem);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #ffffff;
    color: #295f79;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   TECHNOLOGY STACK SECTION
   ============================================ */
.tech-title {
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    color: #295f79;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(0.75rem, 2vw, 1rem);
}

.tech-item {
    padding: clamp(0.75rem, 2vw, 1rem);
    background: #f5f5f5;
    border-radius: 8px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: background 0.3s ease, transform 0.3s ease;
}

.tech-item:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

.tech-item strong {
    color: #295f79;
    display: block;
    margin-bottom: 0.25rem;
}

/* ============================================
   CHAT SECTION
   ============================================ */

   .agent-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0.0rem;
    min-height: 400px; /* Add this */
    background-image: url('https://static.wixstatic.com/media/f45f68_0ad3bf28e0da4cb29a7e1374f021164f.jpg/v1/fill/w_426,h_409,al_c,q_80,usm_0.66_1.00_0.01,enc_avif,quality_auto/f45f68_0ad3bf28e0da4cb29a7e1374f021164f.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}


.chat-panel {
    background: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    max-width: 1000px;
    min-height: 400px;
    height: 500px;
    margin: 0.0rem auto 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    opacity:90%;
}

.chat-header {
    background: #16213e;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #0f3460;
}

.chat-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.chat-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.95;
    color: white;
}

.chat-preview-messages {
    padding: 1rem 1.5rem 0.5rem;
    flex: none;
}

.preview-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    min-height: 0;
}

.preview-message.bot {
    justify-content: flex-start;
}

.message-avatar {
    font-size: 1.5rem;
    flex-shrink: 0;
    padding: 0.25rem 0;
}

.message-bubble {
    background: linear-gradient(135deg, rgba(7, 51, 247, 0.85) 0%, rgba(77, 101, 207, 0.85) 100%);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: #e0e0e0;
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: #75b7d3 #1a1a2e;
    display: flex;
    flex-direction: column;
}

.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.messages-container::-webkit-scrollbar-thumb {
    background: #75b7d3;
    border-radius: 3px;
}
.message {
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease-out;
}

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

.message-user {
    display: flex;
    justify-content: flex-end;
}

.message-user .message-content {
    background: linear-gradient(135deg, rgba(6, 58, 61, 0.85) 0%, rgba(5, 206, 247, 0.9) 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}

.message-agent {
    display: flex;
    justify-content: flex-start;
}

.message-agent .message-content {
    background: linear-gradient(135deg, rgba(7, 51, 247, 0.85) 0%, rgba(77, 101, 207, 0.85) 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
}

.message-time {
    font-size: 0.8rem;
    color: #feffc6;
    margin-top: 0.25rem;
    padding: 0 1rem;
}

.input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid #263277;
    background: rgb(9, 41, 112);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.input-group {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #295f79;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    min-height: 20px;
}

.input-group button {
    padding: 0.75rem 1.5rem;
    background: #295f79;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.input-group button:hover:not(:disabled) {
    background: #1e4a5f;
    transform: translateY(-2px);
}

.input-group button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.gallery-message {
    width: min(100%, 820px);
}

.gallery-message .message-time {
    padding-left: 0;
}

.search-results-header {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #4CAF50;
}

.search-results-header h4 {
    margin: 0;
    color: #2e7d32;
    font-size: 1rem;
}

.artwork-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.artwork-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.artwork-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.artwork-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.artwork-info {
    padding: 0.75rem;
}

.artwork-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #333;
}

.artwork-artist {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.artwork-price {
    font-size: 0.9rem;
    color: #4CAF50;
    font-weight: 600;
}

.artwork-score {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .artwork-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}













/* ============================================
   ART GALLERIES SECTION - Carousel Style
   ============================================ */
.galleries-section {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #295f79;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gallery-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid #295f79;
    background: transparent;
    color: #295f79;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gallery-tab:hover {
    background: rgba(41, 95, 121, 0.1);
}

.gallery-tab.active {
    background: #295f79;
    color: white;
}

.gallery-container {
    transition: opacity 0.3s ease;
}

.gallery-container.hidden {
    display: none;
}

/* Carousel Wrapper */
.carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* Gallery Image - Single View */
.gallery-image {
    width: auto;
    max-width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    background: linear-gradient(135deg, #295f79, #75b7d3);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(41, 95, 121, 0.3);
    z-index: 10;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #1d4a5c, #5a9bb5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev-btn {
    left: 0;
}

.carousel-btn.next-btn {
    right: 0;
}

/* Carousel Counter */
.carousel-counter {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.95rem;
}

.carousel-counter .current {
    color: #295f79;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Image Title */
.image-title {
    text-align: center;
    margin-top: 1rem;
    color: #295f79;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-title {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    margin-top: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile Small (< 375px) */
@media (max-width: 374px) {
    .video-banner {
        height: 40vh;
        min-height: 250px;
    }
    
    .stat-grid,
    .features-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .masonry-grid {
        columns: 1;
    }
    
    .chat-preview {
        margin: 1rem auto 0;
    }
}

/* Mobile Medium (375px - 639px) */
@media (min-width: 375px) and (max-width: 639px) {
    .video-banner {
        height: 45vh;
        min-height: 300px;
    }
    
    .masonry-grid {
        columns: 2;
    }
}

/* Tablet Portrait (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .masonry-grid {
        columns: 2;
    }
}

/* Tablet Landscape & Desktop (≥ 768px) */
@media (min-width: 768px) {
    .masonry-grid {
        columns: 3;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .masonry-grid {
        columns: 4;
    }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .masonry-grid {
        columns: 5;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .header {
        background: #000000;
        color: #ffffff;
    }
    
    .stat-card,
    .tech-item {
        border: 2px solid #000000;
    }
}

/* Portrait Orientation - Mobile & Tablet */
@media (orientation: portrait) and (max-width: 767px) {
    .header {
        background-size: contain;     /* Show full image on portrait */
        background-position: center;
        min-height: clamp(350px, 45vh, 500px);
        padding: clamp(2.5rem, 7vw, 4rem) clamp(1rem, 4vw, 2rem);
    }
}

/* Landscape Orientation - Mobile */
@media (orientation: landscape) and (max-height: 500px) {
    .header {
        background-size: cover;       /* Cover for landscape to fill width */
        background-position: center;
        min-height: clamp(250px, 80vh, 400px);
        padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
    }
}
