:root {
    --gold-primary: #c5a059;
    --gold-light: #e6c888;
    --gold-dark: #8e7033;
    --dark-bg: #0a2e38;
    --dark-surface: #0f3d4a;
    --dark-surface-hover: #144d5c;
    --text-light: #f8f9fa;
    --font-playfair: 'Playfair Display', serif;
    --font-lato: 'Lato', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: var(--font-lato);
}

.font-playfair {
    font-family: var(--font-playfair);
}

.font-lato {
    font-family: var(--font-lato);
}

/* Colors */
.bg-dark-custom {
    background-color: var(--dark-bg) !important;
}

.bg-darker {
    background-color: var(--dark-bg) !important;
}

.bg-dark-surface {
    background-color: var(--dark-surface) !important;
}

.text-gold {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    animation: shine 4s infinite linear;
    background-size: 200% auto;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.text-gold-hover:hover {
    color: var(--gold-primary) !important;
}

.bg-gold {
    background-color: var(--gold-primary);
}

/* Buttons */
.btn-gold {
    background: linear-gradient(45deg, var(--gold-dark), var(--gold-primary));
    border: none;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.btn-gold:hover {
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-light));
    color: #051b21;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: #051b21;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.2);
}

/* Navbar Logo Fix */
.navbar-brand img {
    height: 70px;
}

.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='rgba%28197, 160, 89, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    border-top: 1px solid rgba(197, 160, 89, 0.3);
}

.footer a.hover-gold:hover {
    color: var(--gold-primary) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    background-color: var(--dark-bg);
    background-image: none;
    overflow: hidden;
}

.hero-statuette {
    max-height: 550px;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 1.5rem;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* Feature Boxes */
.feature-box {
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-radius: 4px;
    transition: all 0.3s;
    background: var(--dark-surface);
}

.feature-box:hover {
    border-color: var(--gold-primary);
    background: var(--dark-surface-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Laureate Cards */
.separator-gold {
    height: 3px;
    width: 100px;
    background: var(--gold-primary);
}

.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: var(--gold-primary) !important;
}

.shadow-gold {
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Marquee Animation */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-card {
    min-width: 300px;
    background: var(--dark-surface);
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* Sections Separation - Gold */
section {
    border-bottom: 1px solid rgba(197, 160, 89, 0.4);
}

section:last-of-type {
    border-bottom: none;
}

/* Global Text Override for better contrast */
.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-dark {
    color: #000 !important;
}

body {
    color: #fff;
}

/* Explicit Border Class */
.border-bottom-gold {
    border-bottom: 1px solid rgba(197, 160, 89, 0.5) !important;
}

.border-gold {
    border-color: rgba(197, 160, 89, 0.5) !important;
}

/* Enhanced Marquee for Check Winner Section */
.marquee-row {
    display: flex;
    gap: 20px;
    animation: marquee-scroll 40s linear infinite;
    width: max-content;
}

.check-winner-card {
    min-width: 250px;
    height: 350px;
    background: var(--dark-surface);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.3s;
}

.check-winner-card:hover {
    opacity: 1;
    border-color: var(--gold-primary);
    transform: scale(1.05);
}

.check-winner-card img {
    max-height: 80%;
    max-width: 80%;
    filter: grayscale(100%);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

/* Flow Marquee Styles */
.marquee-flow-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* Ensure cards in flow look good */
.marquee-flow-container .check-winner-card {
    opacity: 0.8;
    height: 250px;
    min-width: 200px;
}

/* Client Placeholder for Marquee */
.client-placeholder {
    width: 250px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gold-primary);
    font-size: 0.9rem;
    padding: 1rem;
    flex-shrink: 0;
}

/* Ensure images in statuettes section are larger */
.statuette-large-img {
    transition: transform 0.3s ease;
}

.statuette-large-img:hover {
    transform: scale(1.05);
}

/* Laureate Marquee Specifics */
.laureate-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.laureate-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee-scroll 50s linear infinite;
}

.laureate-track:hover {
    animation-play-state: paused;
}

.laureate-card-slide {
    width: 350px;
    flex-shrink: 0;
}

/* Overlay for hero */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.z-index-1 {
    z-index: 1;
}

/* Position relative for hero */
.position-relative {
    position: relative;
}

/* Icon gold */
.icon-gold {
    color: var(--gold-primary);
}

/* Glow gold */
.glow-gold {
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.3);
}

/* ==================== CHAT WIDGET ==================== */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: var(--font-lato);
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C5A059, #8B7355);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(197, 160, 89, 0.6);
}

.chat-icon {
    font-size: 28px;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: #1a1a2e;
    border: 1px solid rgba(197, 160, 89, 0.5);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #C5A059, #8B7355);
    color: #000;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    background: none;
    border: none;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #0d0d1a;
}

.chat-msg {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 14px;
}

.chat-msg.admin {
    background: #16213e;
    color: #fff;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: linear-gradient(135deg, #C5A059, #8B7355);
    color: #000;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-msg .sender {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.chat-input-area {
    display: flex;
    padding: 10px;
    background: #16213e;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
}

.chat-input-area input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 20px;
    background: #0d0d1a;
    color: #fff;
    outline: none;
}

.chat-input-area input:focus {
    border-color: #C5A059;
}

.chat-input-area input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input-area button {
    margin-left: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #C5A059, #8B7355);
    border: none;
    border-radius: 20px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-input-area button:hover {
    background: linear-gradient(135deg, #d4b06a, #9c8466);
    transform: scale(1.05);
}

/* Form validation */
.input-validation-error {
    border-color: #dc3545 !important;
}

.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
}

/* Alert styles */
.alert {
    border: none;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

/* Card hover effects */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .chat-window {
        width: calc(100vw - 40px);
        right: 0;
    }
    
    .laureate-card-slide {
        width: 280px;
    }
}
