/* Base Styles */
:root {
  --primary: #012136;
  --secondary: #0090d0;
  --accent: #4dbde2;
  --light: #f8f9fa;
  --dark: #212529;
  --transition: all 0.3s ease;
}
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: white;
  background-color: #121212;
  overflow-x: hidden;
}

/* Text gradient effect */
.text-gradient {
  background: linear-gradient(90deg, #0090d0, #4dbde2, #012136);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a0a0a;
}

.canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Navigation */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0090d0;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Glowing Button */
.glowing-btn {
  position: relative;
  background: linear-gradient(45deg, #0090d0, #012136);
  border-radius: 30px;
  color: white;
  overflow: hidden;
  z-index: 1;
}

.glowing-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(255, 255, 255, 0.3), transparent 30%);
  transform: rotate(0);
  animation: rotate 4s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

/* Service Cards */
.service-card {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Tech Cards */
.tech-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 144, 208, 0.1), 0 4px 6px -2px rgba(0, 144, 208, 0.05);
}

/* Client Logos (keeping the original classes from the old site) */
.client-euronet, .client-siemens, .client-darimex, .client-vialog, .client-necc,
.client-goldmoney, .client-bramsterdam, .client-brlondon, .client-brhamburg, .client-indus,
.client-schubert, .client-continental, .client-wmt, .client-bluetone, .client-arthema,
.client-ecs, .client-srvr {
  display: block;
  height: 80px;
  width: 156px;
  background-image: url(images/client-sprite.png);
  background-repeat: no-repeat;
  margin: 0 auto;
}

.client-euronet { background-position: -6px 0; }
.client-siemens { background-position: -162px 0; }
.client-darimex { background-position: -318px 0; }
.client-vialog { background-position: -474px 0; }
.client-necc { background-position: -630px 0; }
.client-goldmoney { background-position: -6px -80px; }
.client-bramsterdam { background-position: -162px -80px; }
.client-brlondon { background-position: -318px -80px; }
.client-brhamburg { background-position: -474px -80px; }
.client-indus { background-position: -630px -80px; }
.client-schubert { background-position: -6px -170px; }
.client-continental { background-position: -162px -170px; }
.client-wmt { background-position: -318px -170px; }
.client-bluetone { background-position: -474px -170px; }
.client-arthema { background-position: -630px -170px; }
.client-ecs { background-position: -6px -250px; }
.client-srvr { background-position: -162px -250px; }

/* Background pattern */
.bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230090d0' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Media Queries */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 40px;
  }
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #0090d0;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4dbde2;
}

/* Service details animation */
#security-assessment-details,
#secure-architecture-details,
#devsecops-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

#security-assessment-details.hidden,
#secure-architecture-details.hidden,
#devsecops-details.hidden {
  display: none;
}

/* Certification badges */
.certification-badge {
  transition: transform 0.3s ease;
}

.certification-badge:hover {
  transform: translateY(-5px);
}

/* AWS Certification badge styles */
.aws-badge {
  box-shadow: 0 0 15px rgba(0, 144, 208, 0.3);
  border-radius: 50%;
}
/* Force Chat SVGs to behave */
.chat-send svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  fill: none !important;
  stroke: white !important;
}

/* Chat Widget Styles - Inline Version */
.chat-widget-container {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
  margin-top: 30px !important;
  position: relative;
  z-index: 50;
  clear: both;
}

/* Hidden state for inline chat */
.chat-window-inline {
  width: 100%;
  max-width: 800px;
  height: 380px; /* ALWAYS VISIBLE */
  opacity: 1; /* ALWAYS VISIBLE */
  overflow: hidden;
  background-color: #012136;
  border: 1px solid rgba(77, 189, 226, 0.4);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Active state - NOT NEEDED ANYMORE, ALWAYS VISIBLE */
.chat-window-inline.active {
  height: 380px;
  opacity: 1;
  margin-bottom: 40px;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .chat-window-inline.active {
    height: 350px;
    width: 95%;
  }
}

.chat-header {
  padding: 15px 20px;
  background: linear-gradient(90deg, #012136, #0090d0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.chat-title {
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  background-color: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 5px #00ff88;
}

.chat-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.2s;
  font-size: 1.2rem;
  padding: 5px;
  line-height: 1;
}

.chat-close:hover {
  color: white;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: transparent; /* Ensure transparent background */
}

/* Scrollbar for chat */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2); 
  border-radius: 3px;
}

.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: messageSlideIn 0.3s ease-out;
  word-wrap: break-word; /* Prevent overflow */
}

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

.message.bot {
  align-self: flex-start;
  background-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  border-top-left-radius: 4px;
}

.message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0090d0, #0077b0);
  color: white;
  border-top-right-radius: 4px;
}

.chat-input-area {
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center; /* Center items vertically */
}

.chat-input {
  flex: 1;
  background-color: #222; /* Dark background */
  border: 1px solid rgba(255, 255, 255, 0.4); /* Higher contrast border */
  border-radius: 20px;
  padding: 15px 20px; /* BIGGER PADDING */
  color: white; 
  font-family: inherit;
  font-size: 1.2rem; /* BIGGER FONT */
  outline: none;
  transition: border-color 0.2s;
  height: 60px; /* EXPLICIT HEIGHT - BIG LIKE POBEDA */
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.chat-input:focus {
  border-color: #0090d0;
  background-color: #2a2a2a;
}

.chat-send {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #0090d0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  padding: 0; /* Remove default padding */
}

.chat-send:hover {
  background-color: #4dbde2;
}

.chat-send svg {
  width: 20px;
  height: 20px;
  stroke: white; /* Use stroke for feather icons */
  fill: none;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 5px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  width: fit-content;
  align-self: flex-start;
  margin-top: 5px;
  display: none; /* Hidden by default */
}
.typing-indicator.active {
  display: flex;
}
.dot {
  width: 6px;
  height: 6px;
  background-color: #4dbde2;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}
.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

