
:root {
  --primary: #1E3A8A;
  --secondary: #6D28D9;
  --accent: #F97316;
  --dark: #000000;
  --light: #FFFFFF;
  --gray: #D1D5DB;
  --dark-gray: #2D3748;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500&display=swap');

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

body {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: var(--light);
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  padding: 30px 0;
  text-align: center;
  position: relative;
}

.header::after {
  content: "";
  display: block;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 20px auto;
}

.notice {
  background: rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
}

.grid-system {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.column {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 15px;
  margin-bottom: 30px;
}

@media (max-width: 1200px) {
  .column {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}

@media (max-width: 768px) {
  .column {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 576px) {
  .column {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.card {
  background: rgba(45,55,72,0.7);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card-title {
  font-family: 'Montserrat', sans-serif;
  color: var(--light);
  font-size: 1.2rem;
}

.card-content {
  color: var(--gray);
}

.matrix-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 30px 0;
  animation: fadeIn 1s ease-out;
}

.matrix-item {
  width: 150px;
  height: 150px;
  background-color: var(--secondary);
  margin: 15px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.matrix-item::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,0.3),
    rgba(255,255,255,0)
  );
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.matrix-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(105,90,205,0.5);
}

.matrix-item:hover::before {
  left: 100%;
}

.matrix-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.matrix-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  text-align: center;
}

.tech-demo {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  border-left: 3px solid var(--accent);
}

pre {
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  padding: 15px;
  overflow-x: auto;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 15px 0;
  border: 1px solid rgba(255,255,255,0.1);
}

code {
  color: #F8F8F2;
  background: transparent;
  padding: 2px 4px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--light);
  margin: 25px 0 15px;
}

h2 {
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 15px;
  color: var(--gray);
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--light);
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin: 10px 0;
  box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}

.button:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30,58,138,0.4);
}

.parallax-section {
  height: 400px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  margin: 50px 0;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-container {
  width: 100%;
  height: 300px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
}

.chart-bar {
  width: 30px;
  background: linear-gradient(to top, var(--secondary), var(--primary));
  margin: 0 5px;
  animation: grow 1s ease-out forwards;
  border-radius: 5px 5px 0 0;
  position: relative;
}

.chart-bar::after {
  content: attr(data-value);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--light);
  font-size: 0.8rem;
}

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

@keyframes grow {
  from { height: 0; }
  to { height: var(--bar-height); }
}

.collapsible {
  max-height: 100px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.collapsible.expanded {
  max-height: 1000px;
}

.toggle-button {
  background: none;
  border: none;
  color: var(--accent);
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.toggle-button::after {
  content: "+";
  margin-left: 5px;
  font-size: 1.2rem;
}

.toggle-button.expanded::after {
  content: "-";
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.nav-link {
  color: var(--gray);
  text-decoration: none;
  margin: 0 15px;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

.nav-link:hover::after {
  width: 100%;
}

.footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .header {
    padding: 20px 0;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .matrix-item {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-link {
    margin: 5px 0;
  }
}

