/* AlgoLens Portfolio Showcase Site Stylesheet */

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #121824;
  --bg-glass: rgba(18, 24, 36, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #5d51ff;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Background Glow Circles */
.blur-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.15;
}

.circles-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-blue);
  top: 10%;
  left: -100px;
}

.circles-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  top: 50%;
  right: -100px;
}

/* Section Common Styles */
.section-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-headline {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subline {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

/* Cards style */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(93, 81, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  padding: 16px 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

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

.demo-badge {
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent-blue);
  border-radius: 20px;
  font-weight: 600;
}

.demo-badge:hover {
  background: var(--accent-blue);
  color: white !important;
}

/* Hero Section */
.hero-section {
  padding: 60px 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.tagline {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 16px;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 4px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 600px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
}

.hero-graphics {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-showcase {
  padding: 40px;
  text-align: center;
  max-width: 320px;
  width: 100%;
}

.large-logo {
  width: 140px;
  height: 140px;
  border-radius: 30px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(93, 81, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-showcase h3 {
  font-family: var(--font-title);
  font-size: 20px;
  margin-bottom: 8px;
}

.logo-showcase p {
  font-size: 12px;
  color: var(--text-secondary);
}

.logo-showcase code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-blue);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 30px;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Tech Spotlights */
.tech-spotlights {
  margin-bottom: 40px;
}

.spotlight-card {
  padding: 30px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-color: rgba(93, 81, 255, 0.2);
}

.spotlight-card h4 {
  font-family: var(--font-title);
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.spotlight-card ul {
  list-style-type: none;
}

.spotlight-card li {
  margin-bottom: 14px;
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.spotlight-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Diagram Tabs Section */
.diagram-tabs-container {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.diagram-tab-header {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: white;
  background: var(--accent-gradient);
  font-weight: 600;
}

.diagram-view {
  display: none;
  overflow-x: auto;
  padding: 10px 0;
}

.diagram-view.active {
  display: block;
}

/* Sideloading Setup Step list */
.setup-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.setup-step {
  display: flex;
  gap: 20px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.step-detail h4 {
  font-family: var(--font-title);
  font-size: 18px;
  margin-bottom: 8px;
}

.step-detail p {
  font-size: 14px;
  color: var(--text-secondary);
}

.step-detail a {
  color: var(--accent-blue);
  text-decoration: none;
}

.step-detail a:hover {
  text-decoration: underline;
}

/* Footer style */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background: var(--bg-secondary);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-container a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-container a:hover {
  color: var(--accent-blue);
}

.footer-links {
  display: flex;
  gap: 24px;
}

/* Responsive queries */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
