/* CSS Variables */
:root {
  --bg-primary: #030712;
  --bg-secondary: #111827;
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --color-primary: #2563EB;
  --color-primary-dark: #1e40af;
  --border-color: #1F2937;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--color-primary-dark);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(0px);
  transition: backdrop-filter var(--transition-smooth), background-color var(--transition-smooth);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition-property: backdrop-filter, background-color, border-color;
  padding: 0 1rem;
}

.navbar.scrolled {
  backdrop-filter: blur(10px);
  background-color: rgba(3, 7, 18, 0.9);
  border-bottom-color: var(--border-color);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: opacity var(--transition-smooth);
}

.navbar-logo:hover {
  opacity: 0.8;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color var(--transition-smooth);
}

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

.nav-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  color: white;
}

/* Hero Section */
.hero {
  min-height: auto;
  margin-top: 70px;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

@supports (min-height: 100vh) {
  .hero {
    min-height: 100vh;
  }
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.button {
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  display: inline-block;
  cursor: pointer;
  text-align: center;
}

.button-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
}

.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
  color: white;
}

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

.button-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hero-diagram {
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

.infrastructure-diagram {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.diagram-lines {
  opacity: 0;
  animation: fadeInStroke 1s ease-out 0.4s forwards;
}

.diagram-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 1.5s ease-out 0.5s forwards;
}

.diagram-line:nth-child(2) {
  animation-delay: 0.7s;
}

.diagram-line:nth-child(3) {
  animation-delay: 0.9s;
}

.diagram-line:nth-child(4) {
  animation-delay: 1.1s;
}

.diagram-line:nth-child(5) {
  animation-delay: 1.3s;
}

.diagram-line:nth-child(6) {
  animation-delay: 1.5s;
}

.diagram-nodes {
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1s forwards;
}

.node {
  animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1s backwards;
}

.node:nth-child(1) {
  animation-delay: 1s;
}

.node:nth-child(2) {
  animation-delay: 1.15s;
}

.node:nth-child(3) {
  animation-delay: 1.3s;
}

.node:nth-child(4) {
  animation-delay: 1.45s;
}

.node:nth-child(5) {
  animation-delay: 1.6s;
}

.node-label {
  fill: var(--text-primary);
  font-size: 11px;
  font-weight: 500;
  pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInStroke {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Animation Observer */
.reveal {
  opacity: 0;
  animation: slideInUp 0.8s ease-out forwards;
}

.reveal.visible {
  opacity: 1;
}

/* Problems Section */
.problems {
  padding: 6rem 2rem;
  background-color: var(--bg-primary);
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.problem-card {
  padding: 2rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  transition: all var(--transition-smooth);
  animation: slideInUp 0.8s ease-out both;
}

.problem-card:nth-child(2) {
  animation-delay: 0.1s;
}

.problem-card:nth-child(3) {
  animation-delay: 0.2s;
}

.problem-card:hover {
  border-color: var(--color-primary);
  background-color: rgba(37, 99, 235, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.problem-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.problem-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Focus Areas Section */
.focus-areas {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(37, 99, 235, 0.03) 100%);
  max-width: 1200px;
  margin: 0 auto;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.focus-card {
  padding: 2rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  transition: all var(--transition-smooth);
  animation: slideInUp 0.8s ease-out both;
  position: relative;
  overflow: hidden;
}

.focus-card:nth-child(1) { animation-delay: 0s; }
.focus-card:nth-child(2) { animation-delay: 0.1s; }
.focus-card:nth-child(3) { animation-delay: 0.2s; }
.focus-card:nth-child(4) { animation-delay: 0.3s; }
.focus-card:nth-child(5) { animation-delay: 0.4s; }
.focus-card:nth-child(6) { animation-delay: 0.5s; }

.focus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
  transition: left var(--transition-smooth);
}

.focus-card:hover::before {
  left: 100%;
}

.focus-card:hover {
  border-color: var(--color-primary);
  background-color: rgba(37, 99, 235, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.focus-card h3 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.focus-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* AI Era Section */
.ai-era {
  padding: 6rem 2rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  max-width: 1200px;
  margin: 0 auto;
}

.ai-era-content {
  max-width: 700px;
  margin: 0 auto;
  animation: slideInUp 0.8s ease-out;
}

.ai-era h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.ai-era p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.ai-era p:last-child {
  margin-bottom: 0;
}

/* Vision Section */
.vision {
  padding: 6rem 2rem;
  background-color: var(--bg-primary);
  max-width: 1200px;
  margin: 0 auto;
}

.vision-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  animation: slideInUp 0.8s ease-out;
}

.vision-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* About Section */
.about {
  padding: 6rem 2rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  max-width: 600px;
  margin: 0 auto;
  animation: slideInUp 0.8s ease-out;
}

.about-content > p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-item strong {
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-item span {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Footer */
.footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.footer-logo {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .navbar-container {
    padding: 0 1.5rem;
  }

  .navbar-links {
    gap: 1.5rem;
  }

  .hero-diagram {
    max-width: 350px;
  }

  .infrastructure-diagram {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem 1.5rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .navbar-links {
    display: none;
  }

  .navbar-container {
    padding: 0 1rem;
  }

  .navbar-logo span {
    display: none;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .problems-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .problems,
  .focus-areas,
  .ai-era,
  .vision,
  .about {
    padding: 3rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .button {
    width: 100%;
    text-align: center;
  }

  .ai-era-content {
    padding: 0 0.5rem;
  }

  .hero-diagram {
    width: 100%;
    max-width: none;
  }

  .infrastructure-diagram {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
  }

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

  .section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .button {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  .navbar-logo {
    font-size: 0.95rem;
  }

  .logo-icon {
    width: 24px;
    height: 24px;
  }

  .navbar-container {
    padding: 0 0.75rem;
  }

  .problems-grid,
  .focus-grid {
    gap: 1rem;
  }

  .problem-card,
  .focus-card {
    padding: 1.25rem;
  }

  .problem-card h3,
  .focus-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }

  .problem-card p,
  .focus-card p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .hero-buttons {
    gap: 0.5rem;
  }

  .ai-era h2,
  .vision .section-header h2 {
    margin-bottom: 1.5rem;
  }

  .ai-era p,
  .vision-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .problems,
  .focus-areas,
  .ai-era,
  .vision,
  .about {
    padding: 2rem 1rem;
  }

  .about-content > p {
    font-size: 0.95rem;
  }

  .detail-item strong {
    font-size: 0.8rem;
  }

  .detail-item span {
    font-size: 0.9rem;
  }

  .footer-content {
    padding: 0 0.5rem;
  }

  .footer-links {
    gap: 1.5rem;
    font-size: 0.85rem;
  }

  .footer-bottom {
    font-size: 0.75rem;
    padding-top: 1.5rem;
  }
}
