@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

:root {
  /* Quantum Contact Inherited Theme (Modern Technical) */
  --bg-app: #eef7fb;
  --bg-panel: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.9);
  --bg-card: #ffffff;
  --bg-muted: #e7f3f8;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-quiet: #94a3b8;
  --text-on-accent: #ffffff;

  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-alpha: rgba(14, 165, 233, 0.08);

  --border: #b8d9e8;
  --border-light: #d8edf5;

  --font-main: 'Outfit', sans-serif;
  --theme-shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  --card-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  --card-shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.12);
  
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: var(--transition);
}

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 4px 14px var(--accent-alpha);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-alpha);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
}

.nav-link:hover {
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 100vh;
}

.hero-content {
  max-width: 600px;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--theme-shadow);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: var(--transition);
}

.hero-image-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Systems Section */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.system-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border);
}

.system-img-container {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--bg-muted);
}

.system-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.system-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent-alpha);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.system-card.dark {
  background: #0f172a;
  color: white;
  border-color: #1e293b;
}

.system-card.dark h3 {
  color: white;
}

.system-card.dark p {
  color: #94a3b8;
}

.system-card.dark .system-tag {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Custom Solutions */
.custom-solutions {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.solutions-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.solutions-text {
  flex: 1;
}

.solutions-features {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-muted);
  color: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Contact Section */
.contact-section {
  position: relative;
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--theme-shadow);
}

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

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-alpha);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-logo {
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    transform: none;
  }

  .solutions-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Mobile menu needed */
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .systems-grid {
    grid-template-columns: 1fr;
  }
  
  .solutions-features {
    grid-template-columns: 1fr;
  }
  
  .contact-wrapper {
    padding: 2rem;
  }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}


/* Chat Widget Styles */
.chat-bubble.user {
    background: var(--accent);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    border-bottom-right-radius: 4px;
    max-width: 85%;
    align-self: flex-end;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-out;
}
.chat-bubble.agent {
    background: #e2e8f0;
    color: #1e293b;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 85%;
    align-self: flex-start;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-out;
}
.quick-reply-btn {
    background: white;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.quick-reply-btn:hover {
    background: var(--accent);
    color: white;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
