:root {
    --sky-blue: #E2E8F0; /* Updated to Light Metallic Platinum */
    --deep-navy: #0F2272;
    --off-white: #C9D1D9;
    --dark-blue: #1F4588;
    --gold: #D4AF37;
    --iron-grey: #2B2D31;
    --white: #FFFFFF;
    --black: #000000;
    --gold-glow: 0 0 15px rgba(212, 175, 55, 0.6);
    --text-on-light: #0F2272;
    --text-on-dark: #C9D1D9;
}

body {
    background: radial-gradient(circle at 50% 50%, #f8fafc 0%, #e2e8f0 100%);
    background-attachment: fixed;
    background-image:
        linear-gradient(90deg, rgba(15, 34, 114, .03) 1px, transparent 1px),
        linear-gradient(rgba(15, 34, 114, .03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-on-light);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

#ai-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* AI Tech Decorative Elements */
.bento-item::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.bento-item:hover::before {
    opacity: 1;
    top: 5px;
    left: 5px;
}

.tech-readout {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-family: monospace;
    font-size: 8px;
    color: var(--gold);
    opacity: 0.4;
    letter-spacing: 1px;
    pointer-events: none;
}

.bento-item:hover .tech-readout {
    opacity: 0.8;
}

/* Enhanced Hero */
.bento-hero {
    background: linear-gradient(145deg, #1a1c20, #0F2272);
    border: 2px solid var(--gold);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    color: var(--text-on-dark);
    position: relative;
    box-shadow: 0 10px 30px rgba(15, 34, 114, 0.3);
    will-change: transform;
    transform-style: preserve-3d;
    overflow: hidden;
}

.bento-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.1), transparent 30%);
    animation: rotate-360 10s linear infinite;
    pointer-events: none;
}

.bento-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.08;
    pointer-events: none;
}

.bento-hero:hover {
    border-color: var(--gold);
    box-shadow: var(--gold-glow), 0 20px 50px rgba(0,0,0,0.5);
}

.bento-item {
    background: rgba(235, 245, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(15, 34, 114, 0.1);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    color: var(--deep-navy);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    will-change: transform;
    transform-style: preserve-3d;
}

.bento-item:hover {
    background: rgba(245, 250, 255, 0.95);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(15, 34, 114, 0.15);
}

/* Scroll Reveal & AI Emerge Animations */
.reveal-hidden {
    opacity: 0;
    transform: perspective(1000px) translateZ(-500px) scale(0.1);
    pointer-events: none;
    transition: all 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hero emerges from a single point in the NN center */
.reveal-hidden.bento-hero {
    opacity: 0;
    transform: perspective(1000px) translateY(20vh) translateZ(-1000px) scale(0.1);
    transition: transform 7s cubic-bezier(0.22, 1, 0.36, 1), opacity 2s ease;
}

.reveal-active {
    opacity: 1;
    transform: perspective(1000px) rotateY(0) translateY(0) translateZ(0) scale(1);
    pointer-events: auto;
}

@media (max-width: 768px) {
    .reveal-hidden {
        transform: perspective(1000px) translateY(50px) scale(0.8);
        transition: all 1s ease-out;
    }
    .reveal-hidden.bento-hero {
        transform: perspective(1000px) translateY(100px) scale(0.5);
        transition: all 2s ease-out;
    }
    .reveal-active {
        transform: perspective(1000px) translateY(0) scale(1);
    }
}


.bento-item.no-hover-bg:hover {
    background: rgba(15, 34, 114, 0.3) !important;
}

.bento-item h3, .bento-item h4 {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Cute AI Face */
.ai-face {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bento-item:hover .ai-face {
    opacity: 0.8;
}

.ai-eyes {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.ai-eye {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: ai-blink 4s infinite;
}

.ai-mouth {
    width: 10px;
    height: 4px;
    border-bottom: 2px solid var(--gold);
    border-radius: 0 0 5px 5px;
    opacity: 0.8;
}

@keyframes ai-blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

/* Golden Lines & Dividers */
.gold-line-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 3rem 0;
    box-shadow: var(--gold-glow);
}

.hero-title {
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(15, 34, 114, 0.5);
    font-weight: 900;
}

.glass-nav {
    background: rgba(15, 34, 114, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid var(--gold);
}

.nav-link {
    color: var(--white) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--gold) !important;
    text-shadow: var(--gold-glow);
}

/* Unified Button Style: Iron Background, White Text, Gold Border */
.btn-opaida {
    background-color: var(--deep-navy);
    color: var(--white) !important;
    border: 2px solid var(--gold);
    padding: 1rem 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-opaida:hover {
    background-color: var(--gold);
    color: var(--black) !important;
    box-shadow: var(--gold-glow);
    transform: scale(1.02);
}

/* Chatbot Refinement */
#chatbot-container {
    background: #1a1c20;
    border: 3px solid var(--gold);
}

#chatbot-messages div {
    color: var(--white);
}

.feature-icon {
    filter: drop-shadow(0 0 10px var(--gold));
}

.text-bright { color: var(--white); }
.text-gold { color: var(--gold); }
.text-main { color: var(--text-on-light); }

/* Rotating Flash Animation */
@keyframes rotate-360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes flash-pulse {
    0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 10px var(--gold)); }
    50% { opacity: 1; filter: drop-shadow(0 0 30px var(--gold)); }
}

.rotating-flash {
    animation: rotate-360 20s linear infinite, flash-pulse 3s ease-in-out infinite;
}

/* Smart Search Flash Animation */
.search-container {
    position: relative;
    display: inline-block;
}

.search-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    box-shadow: 0 0 20px var(--gold), 0 0 40px var(--gold);
    animation: scan-move 2s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
}

.bento-item:hover .search-scan {
    opacity: 1;
}

@keyframes scan-move {
    0% { top: 0; }
    100% { top: 100%; }
}

.pulse-glow {
    animation: pulse-glow-anim 2s ease-in-out infinite;
}

@keyframes pulse-glow-anim {
    0%, 100% { filter: drop-shadow(0 0 5px var(--gold)); }
    50% { filter: drop-shadow(0 0 20px var(--gold)); }
}

/* Intelligent Collaboration Animation */
.collaboration-container {
    position: relative;
    display: inline-block;
}

.collab-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
}

.bento-item:hover .collab-ring {
    animation: collab-pulse 2s infinite;
}

@keyframes collab-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.collab-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotate-360 10s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bento-item:hover .collab-dots {
    opacity: 1;
}

.collab-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
}

.dot-1 { top: -5px; left: 50%; transform: translateX(-50%); }
.dot-2 { bottom: -5px; left: 50%; transform: translateX(-50%); }
.dot-3 { left: -5px; top: 50%; transform: translateY(-50%); }
.dot-4 { right: -5px; top: 50%; transform: translateY(-50%); }

/* GPU Cluster Animation */
.gpu-container {
    position: relative;
    display: inline-block;
}

.gpu-circuit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.bento-item:hover .gpu-circuit {
    opacity: 1;
}

.circuit-line {
    position: absolute;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

.line-1 { top: 20%; left: -10px; width: 20px; height: 2px; animation: circuit-pulse 1.5s infinite; }
.line-2 { bottom: 20%; right: -10px; width: 20px; height: 2px; animation: circuit-pulse 1.5s infinite 0.5s; }
.line-3 { left: 20%; top: -10px; width: 2px; height: 20px; animation: circuit-pulse 1.5s infinite 1s; }
.line-4 { right: 20%; bottom: -10px; width: 2px; height: 20px; animation: circuit-pulse 1.5s infinite 1.5s; }

@keyframes circuit-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}


/* EVA Chatbot Styles */
#eva-chat-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--deep-navy);
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  box-shadow: var(--gold-glow);
  padding: 0;
  outline: none;
}

#eva-chat-button:hover {
  transform: scale(1.05);
  background: var(--gold);
  color: var(--black);
}

#eva-chat-teaser {
  position: fixed;
  bottom: 90px;
  right: 20px;
  max-width: 240px;
  background-color: var(--deep-navy);
  color: white;
  padding: 12px 16px;
  border: 2px solid var(--gold);
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 10001;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

#eva-chat-teaser.show {
  opacity: 1;
  transform: translateY(0);
}

#eva-chat-window {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 350px;
  height: 500px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 120px);
  background: white;
  border: 2px solid var(--gold);
  border-radius: 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

#eva-chat-window.show {
  display: flex !important;
}

#eva-chat-header {
  background-color: var(--gold);
  color: var(--black);
  font-weight: 900;
  padding: 12px 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#eva-close-btn {
  background: transparent;
  border: none;
  color: var(--black);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

#eva-chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f9fa;
}

.eva-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 0;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.eva-message.you {
  align-self: flex-end;
  background-color: var(--deep-navy);
  color: white;
  border: 1px solid var(--gold);
}

.eva-message.eva {
  align-self: flex-start;
  background-color: #e9ecef;
  color: var(--deep-navy);
  border: 1px solid #dee2e6;
}

.eva-message.eva-question {
  align-self: flex-start;
  background-color: rgba(127, 192, 238, 0.1);
  color: var(--dark-blue);
  font-style: italic;
  border: 1px solid var(--sky-blue);
}

#eva-chat-input {
  display: flex;
  border-top: 1px solid #dee2e6;
  background: white;
  padding: 10px;
}

#eva-chat-input input {
  flex: 1;
  background: #f1f3f5;
  border: 1px solid #dee2e6;
  padding: 10px;
  outline: none;
  font-size: 12px;
  color: var(--deep-navy);
  font-family: 'Inter', sans-serif;
}

#eva-chat-input input:focus {
  border-color: var(--gold);
}

#eva-chat-input button {
  background: var(--deep-navy);
  border: 2px solid var(--gold);
  color: var(--white);
  padding: 0 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-left: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#eva-chat-input button:hover {
  background: var(--gold);
  color: var(--black);
  box-shadow: var(--gold-glow);
}