/* custom.css - Premium UI Styling for AKME Global */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables & Theme Setup */
:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  
  /* Color Palette */
  --bg-primary: #080b11;
  --bg-secondary: #0f131c;
  --bg-tertiary: #171d2b;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  
  --accent-indigo-rgb: 99, 102, 241;
  --accent-cyan-rgb: 6, 182, 212;
  
  /* Borders and Glows */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.4);
  --glow-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Global Overrides */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* Gradient Text Effect */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-indigo) 70%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: linear-gradient(135deg, var(--accent-violet) 0%, var(--accent-indigo) 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Soft Glow Elements */
.glow-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 50%, rgba(0,0,0,0) 100%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  top: 15%;
  right: -10%;
}

.glow-orb-2 {
  top: 60%;
  left: -15%;
}

/* Glassmorphism Navbar */
.navbar-custom {
  background: rgba(8, 11, 17, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  transition: var(--transition-smooth);
}

.navbar-custom.scrolled {
  padding: 12px 0;
  background: rgba(8, 11, 17, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-custom .navbar-brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-custom .navbar-brand img {
  height: 32px;
  margin-right: 10px;
  filter: drop-shadow(0 0 4px rgba(99, 102, 241, 0.5));
}

.navbar-custom .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 18px !important;
  transition: var(--transition-fast);
  position: relative;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
  color: #ffffff !important;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  transform: scaleX(1);
}

/* Premium Buttons */
.btn-premium {
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-violet) 100%);
  color: #ffffff;
  border: none;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  color: #ffffff;
}

.btn-outline-premium {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid var(--border-light);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.btn-outline-premium:hover {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

/* Hero Section Style */
.hero-section {
  position: relative;
  padding: 160px 0 100px 0;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  z-index: 1;
}

/* Tech Grid Pattern overlay */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0),
    linear-gradient(to bottom, var(--bg-primary), transparent 80%);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

.hero-subtitle {
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
}

/* Interactive Hero Visual - Terminal/Code Frame */
.hero-visual-container {
  position: relative;
  perspective: 1000px;
}

.hero-visual {
  background: rgba(15, 19, 28, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: var(--transition-smooth);
}

.hero-visual:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 0 30px 70px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.visual-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
}

.visual-body {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.visual-body .highlight {
  color: var(--accent-cyan);
}

.visual-body .keyword {
  color: var(--accent-indigo);
}

/* Sections Styling */
.section-padding {
  padding: 100px 0;
  position: relative;
}

.section-title-container {
  margin-bottom: 60px;
}

.section-label {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent-indigo);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 15px;
}

/* Bento Grid Services styling */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 280px;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.05), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

/* Specific bento span settings */
.bento-card.col-span-2 {
  grid-column: span 2;
}

.bento-card.row-span-2 {
  grid-row: span 2;
  min-height: 580px;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.05);
}

.bento-card-bg {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  opacity: 0.15;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.bento-card:hover .bento-card-bg {
  opacity: 0.3;
  transform: scale(1.05);
}

.bento-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent-indigo);
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.bento-card:hover .bento-icon-wrapper {
  background: var(--accent-indigo);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.bento-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.bento-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Custom interactive mockup insides for Bento Cards */
.bento-mockup {
  margin-top: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-mockup .bar {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  margin-bottom: 8px;
}

.bento-mockup .bar.accent {
  background: var(--accent-cyan);
  width: 70%;
}

.bento-mockup .bar.accent-purple {
  background: var(--accent-violet);
  width: 45%;
}

/* Interactive Technology Stack styling */
.tech-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.tech-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tech-tab {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tech-tab:hover {
  border-color: var(--accent-indigo);
  color: #ffffff;
}

.tech-tab.active {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.tech-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.15);
}

.tech-card i {
  font-size: 32px;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: var(--transition-smooth);
}

.tech-card:hover i {
  color: var(--accent-cyan);
  transform: scale(1.1);
}

.tech-card span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.tech-card:hover span {
  color: #ffffff;
}

/* Contact Section Styling */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 40px;
  align-items: start;
}

.contact-info-panel {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 18px;
}

.contact-item-details h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-item-details p, .contact-item-details a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-item-details a:hover {
  color: var(--accent-cyan);
}

/* Premium Form Styles */
.contact-form-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-group-custom {
  position: relative;
  margin-bottom: 24px;
}

.form-control-custom {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px 20px;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control-custom:focus {
  border-color: var(--accent-indigo);
  outline: none;
  box-shadow: var(--glow-shadow);
}

.form-label-custom {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
}

/* Floating labels effect */
.form-control-custom:focus ~ .form-label-custom,
.form-control-custom:not(:placeholder-shown) ~ .form-label-custom {
  top: 0;
  transform: translateY(-50%) scale(0.85);
  background: var(--bg-secondary);
  padding: 0 8px;
  color: var(--accent-indigo);
}

textarea.form-control-custom ~ .form-label-custom {
  top: 24px;
}
textarea.form-control-custom:focus ~ .form-label-custom,
textarea.form-control-custom:not(:placeholder-shown) ~ .form-label-custom {
  top: 0;
}

/* Footer style */
.footer-custom {
  border-top: 1px solid var(--border-light);
  background-color: #05070a;
  padding: 40px 0;
  color: var(--text-secondary);
}

.footer-logo {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 12px;
  display: inline-block;
  text-decoration: none;
}

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

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

/* Response/Animation overrides & helpers */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.col-span-2 {
    grid-column: span 1;
  }
  .bento-card.row-span-2 {
    grid-row: span 1;
    min-height: 280px;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-tabs {
    flex-direction: column;
    width: 100%;
  }
  .tech-tab {
    width: 100%;
    text-align: center;
  }
}

/* AI Agent Playground Styling */
.ai-playground-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.prompt-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prompt-pill-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.prompt-pill-btn i {
  color: var(--accent-violet);
  transition: var(--transition-fast);
}

.prompt-pill-btn:hover, .prompt-pill-btn.active {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--accent-violet);
  color: #ffffff;
  transform: translateX(5px);
}

.prompt-pill-btn.active i {
  transform: rotate(90deg);
  color: var(--accent-cyan);
}

.agent-terminal {
  background: #04060a;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.agent-terminal-header {
  background: rgba(15, 19, 28, 0.6);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agent-terminal-body {
  padding: 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: #a78bfa; /* Soft purple */
  flex-grow: 1;
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

/* Custom scrollbar for terminal */
.agent-terminal-body::-webkit-scrollbar {
  width: 6px;
}
.agent-terminal-body::-webkit-scrollbar-track {
  background: transparent;
}
.agent-terminal-body::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.terminal-log-entry {
  opacity: 0;
  transform: translateY(10px);
  animation: logFadeIn 0.4s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-log-entry.command {
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-log-entry.thinking {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: italic;
}

.terminal-log-entry.success {
  color: var(--accent-emerald);
  font-weight: 600;
}

.terminal-log-entry.system {
  color: var(--accent-cyan);
}

.blinking-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: var(--accent-cyan);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes logFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  from, to { background-color: transparent }
  50% { background-color: var(--accent-cyan) }
}

/* Pulse indicator */
.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
  animation: pulse 1.6s infinite;
  display: inline-block;
}

.pulse-indicator.thinking {
  background: var(--accent-violet);
  box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
}

.pulse-indicator.success {
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
  }
}
