/* style.css for XY AI Solution Website */

/* --- CSS Variables & Theming --- */
:root {
  /* Dark Mode Palette */
  --bg-color: #0F1C2E;           /* Midnight Dark */
  --surface-color: #162842;      /* Midnight Surface */
  --surface-hover: #1E3656;
  
  /* Accents */
  --accent-primary: #2DD4BF;     /* Bright Teal */
  --accent-secondary: #0D9488;   /* Dark Teal */
  --accent-gradient: linear-gradient(135deg, #0D9488 0%, #2DD4BF 100%);
  
  /* Typography Colors */
  --text-main: #F0FDFA;          /* Crisp light teal */
  --text-muted: #94A3B8;         /* Professional slate gray */
  
  /* Fonts */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Borders & Shadows */
  --border-color: rgba(45, 212, 191, 0.15);
  --glass-bg: rgba(22, 40, 66, 0.6);
  --glass-border: rgba(45, 212, 191, 0.1);
  --shadow-glow: 0 0 20px rgba(45, 212, 191, 0.15);
  
  /* Spacing */
  --section-padding-y: 120px;
  --section-padding: var(--section-padding-y) 0;
  --container-width: 1200px;
}

/* --- Base Reset & Typography --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .logo {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
}

h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -1px; }
h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }

p { font-size: 1.125rem; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-color {
  color: var(--accent-primary);
}

/* --- UI Components --- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--surface-color);
  border-color: var(--accent-primary);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 212, 191, 0.3);
  box-shadow: var(--shadow-glow);
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(45, 212, 191, 0.1);
  color: var(--accent-primary);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 28, 46, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

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

/* --- Hero Section --- */
.hero {
  padding: 10rem 0 6rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

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

.hero-visual {
  position: relative;
  height: 500px;
}

.hero-visual .main-stat {
  position: absolute;
  top: 20%;
  right: 10%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  animation: float 6s ease-in-out infinite;
}

.hero-visual .main-stat i {
  font-size: 2.5rem;
}

.hero-visual .secondary-stat {
  position: absolute;
  bottom: 20%;
  left: 10%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  animation: float 8s ease-in-out infinite reverse;
}

.hero-visual .secondary-stat i {
  font-size: 2.5rem;
  color: var(--accent-secondary);
}

.glowing-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, rgba(15, 28, 46, 0) 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: blur(40px);
}

.orb-2 {
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, rgba(15, 28, 46, 0) 70%);
  top: 30%;
  left: 70%;
}

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

/* --- Trust Banner --- */
.trust-banner {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(22, 40, 66, 0.3);
  text-align: center;
}

.trust-banner p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  font-weight: 500;
}

.brand-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  opacity: 0.5;
}

.brand-strip i {
  font-size: 2.5rem;
  transition: opacity 0.3s ease;
}

.brand-strip i:hover {
  opacity: 1;
  color: var(--text-main);
}

/* --- Services Section --- */
.services {
  padding: var(--section-padding);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(13, 148, 136, 0.05), transparent 50%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 3rem 2.5rem;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.service-card:nth-child(even) .service-icon {
  background: rgba(13, 148, 136, 0.1);
  color: var(--accent-secondary);
  border-color: rgba(13, 148, 136, 0.2);
}

.service-card h3 {
  margin-bottom: 1rem;
}

/* --- Process Section --- */
.process {
  padding: calc(var(--section-padding-y) * 0.5) 0 var(--section-padding-y) 0;
}

.process-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  background: var(--surface-color);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  line-height: 1;
}

.step:hover .step-number {
  -webkit-text-stroke: 1px var(--accent-primary);
  color: rgba(45, 212, 191, 0.1);
}

.step-connector {
  width: 2px;
  height: 50px;
  background: var(--border-color);
  margin: 1rem 0;
}

/* --- CTA Section --- */
.cta {
  padding: calc(var(--section-padding-y) * 0.8) 0 var(--section-padding-y) 0;
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
  padding: 4rem;
  background: linear-gradient(135deg, rgba(22, 40, 66, 0.8) 0%, rgba(15, 28, 46, 0.9) 100%);
  border: 1px solid rgba(45, 212, 191, 0.15);
  box-shadow: inset 0 0 40px rgba(45, 212, 191, 0.05);
}

.cta-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-content h2 {
  font-size: 3rem;
}

.cta-form-container {
  background: rgba(15, 28, 46, 0.5);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* --- Footer --- */
footer {
  background: #0A1320;
  padding: 6rem 0 2rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1.5rem;
  max-width: 300px;
}

.footer-links h4,
.footer-socials h4 {
  color: var(--text-main);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--accent-gradient);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .hero-container,
  .cta-box {
    gap: 2rem;
  }
  
  h1 { font-size: 3rem; }
  
  .services-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-btn {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero {
    padding-top: 8rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content p {
    margin: 0 auto 2.5rem auto;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-visual {
    height: 400px;
    margin-top: 3rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-box {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  
  .cta-content {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  
  .footer-brand p {
    margin: 1.5rem auto 0 auto;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .btn-lg {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .hero-visual .main-stat,
  .hero-visual .secondary-stat {
    padding: 1rem;
  }
  
  .hero-visual .main-stat h3,
  .hero-visual .secondary-stat h3 {
    font-size: 1.2rem;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* --- Chatbot Widget --- */
.chatbot-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 2rem;
  width: 350px;
  height: 500px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.chatbot-container.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chatbot-header {
  background: rgba(15, 28, 46, 0.9);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.bot-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.bot-avatar {
  width: 35px;
  height: 35px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.bot-info h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-main);
}

.bot-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.bot-actions a,
.bot-actions button {
  color: var(--text-muted);
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.bot-actions a:hover,
.bot-actions button:hover {
  color: var(--accent-primary);
}

.chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(22, 40, 66, 0.3);
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}
.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.message {
  max-width: 85%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.message.bot {
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.2);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message.user {
  background: var(--surface-hover);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.chatbot-input {
  display: flex;
  padding: 1rem;
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  gap: 0.5rem;
}

.chatbot-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0.6rem 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s ease;
}

.chatbot-input input:focus {
  border-color: var(--accent-primary);
}

.chatbot-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.chatbot-input button:hover {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .chatbot-container {
    right: 1rem;
    left: 1rem;
    width: auto;
    bottom: 80px;
    height: 400px;
  }
}

