/* =====================================================
   OktoScript Site - Main Stylesheet
   ===================================================== */

:root {
  --primary-color: #FFD700;
  --primary-dark: #FFA500;
  --text-color: #1a1a1a;
  --text-light: #666;
  --bg-color: #FFFFFF;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  background: var(--bg-color);
  border-bottom: 2px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.nav-brand-link:hover {
  opacity: 0.8;
}

.nav-logo-yellow {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-right: 8px;
}

.nav-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.logo-badge-icon {
  height: 14px;
  width: auto;
  margin-right: 4px;
  vertical-align: middle;
  filter: brightness(0); /* Makes logo black */
}

.ai-logo-small {
  height: 16px;
  width: auto;
  margin-right: 4px;
  vertical-align: middle;
}

.ai-badge {
  background: #ffd700;
  color: #1e1e1e;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-color);
}

.logo-badge {
  background: var(--primary-color);
  color: var(--text-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.nav-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  padding: 6px 16px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 20px;
  border: 1px solid var(--primary-color);
}

.counter-text {
  font-size: 13px;
  color: #000000;
  white-space: nowrap;
  font-weight: 600;
}

.counter-value {
  font-size: 18px;
  font-weight: 800;
  color: #000000;
  min-width: 40px;
  text-align: right;
  animation: countUp 0.5s ease-out;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 100px 0;
  text-align: center;
  color: var(--text-color);
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-subtitle {
  display: block;
  font-size: 32px;
  font-weight: 400;
  margin-top: 12px;
}

.hero-description {
  font-size: 20px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.hero-credit {
  font-size: 16px;
  margin-bottom: 32px;
  color: rgba(0,0,0,0.7);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--text-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border-color: var(--text-color);
}

.btn-secondary:hover {
  background: var(--text-color);
  color: #000000;
}

.btn-outline {
  background: transparent;
  color: var(--text-color);
  border-color: var(--text-color);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.2);
}


/* Code Showcase Section */
.code-showcase-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.code-showcase {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.code-header {
  background: #252526;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #3e3e42;
}

.code-file {
  color: #d4d4d4;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.code-badge {
  background: var(--primary-color);
  color: var(--text-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.code-content {
  padding: 24px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #d4d4d4;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.code-line {
  white-space: pre;
  margin: 0;
  min-height: 1.6em;
  line-height: 1.6;
}

.code-keyword { color: #c586c0; font-weight: 600; }
.code-string { color: #ce9178; }
.code-comment { color: #6a9955; }
.code-number { color: #b5cea8; }
.code-block { color: #569cd6; font-weight: 600; }

.explanation-panel {
  background: var(--bg-color);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.explanation-panel h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-color);
}

.explanation-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.explanation-item {
  padding: 16px;
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
  transition: all 0.3s ease;
}

.explanation-item.active {
  background: rgba(255, 215, 0, 0.1);
  border-left-width: 6px;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.explanation-item:nth-child(1) { animation-delay: 0.3s; }
.explanation-item:nth-child(2) { animation-delay: 0.5s; }
.explanation-item:nth-child(3) { animation-delay: 0.7s; }
.explanation-item:nth-child(4) { animation-delay: 0.9s; }
.explanation-item:nth-child(5) { animation-delay: 1.1s; }
.explanation-item:nth-child(6) { animation-delay: 1.3s; }
.explanation-item:nth-child(7) { animation-delay: 1.5s; }
.explanation-item:nth-child(8) { animation-delay: 1.7s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.explanation-item h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-color);
}

.explanation-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .nav-counter {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  
  .counter-text {
    font-size: 12px;
  }
  
  .counter-value {
    font-size: 16px;
  }
}

/* About Section */
.about-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-color);
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--text-color);
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text-light);
}

.about-text ul {
  list-style: none;
  padding-left: 0;
}

.about-text li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.about-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #000000;
  font-weight: 700;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-card h4 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-color);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Quick Links Section */
.quick-links-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.link-card {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s;
  display: block;
  position: relative;
}

.link-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.link-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.link-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text-color);
}

.link-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.link-arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 24px;
  color: #000000;
  transition: transform 0.3s;
}

.link-card:hover .link-arrow {
  transform: translateX(4px);
}

/* Footer */
.footer {
  background: var(--text-color);
  color: #fff;
  padding: 60px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 40px;
}

.footer-brand {
  flex: 1;
}

.footer-tagline {
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #000000;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.footer-bottom p {
  margin: 4px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 24px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 24px;
  }
}

