:root {
  --bg-color: #0a0a0c;
  --text-color: #e0e0e0;
  --accent-light: #00f2ff;
  --accent-orange: #ff6b35;
  --accent-gold: #ffd93d;
  --card-bg: #16161a;
  --gradient-light: linear-gradient(135deg, #00f2ff 0%, #ffd93d 100%);
}

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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}

header {
  padding: 1.2rem 5%;
  background: rgba(10, 10, 12, 0.95);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 107, 53, 0.2);
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 1px;
}

.logo .accent {
  color: var(--accent-orange);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s;
  font-weight: 500;
}

nav ul li a:hover {
  color: var(--accent-gold);
}

.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(ellipse at top, #1a1424 0%, #0a0a0c 50%);
  padding: 120px 5% 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.15) 0%,
    transparent 70%
  );
  top: -200px;
  right: -100px;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  max-width: 900px;
}

.hero > p {
  font-size: 1.4rem;
  opacity: 0.85;
  margin-bottom: 3rem;
  max-width: 700px;
}

.hero-stats {
  display: flex;
  gap: 4rem;
  margin-top: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.7;
}

.info-section {
  padding: 100px 10%;
}

.alt-bg {
  background-color: #0f0f13;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--accent-light);
  font-weight: 700;
}

.text h3 {
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.text p {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  line-height: 1.8;
}

/* Photonic Demo Visuals */
.photon-demo {
  position: relative;
  width: 100%;
  height: 300px;
  background: rgba(22, 22, 26, 0.6);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.beam {
  position: absolute;
  width: 80%;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-light),
    transparent
  );
  box-shadow: 0 0 20px var(--accent-light);
  animation: beam-flow 2s linear infinite;
}

.beam-1 {
  top: 30%;
  animation-delay: 0s;
}
.beam-2 {
  top: 50%;
  animation-delay: 0.7s;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-gold),
    transparent
  );
  box-shadow: 0 0 20px var(--accent-gold);
}
.beam-3 {
  top: 70%;
  animation-delay: 1.4s;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-orange),
    transparent
  );
  box-shadow: 0 0 20px var(--accent-orange);
}

@keyframes beam-flow {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.chip-outline {
  width: 120px;
  height: 120px;
  border: 2px solid var(--accent-light);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0, 242, 255, 0.3);
}

/* Comparison Chart */
.comparison-chart {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
}

.bar-group {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: flex-end;
  height: 300px;
  margin-bottom: 2rem;
}

.bar {
  width: 80px;
  background: var(--accent-orange);
  border-radius: 10px 10px 0 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
}

.bar.photonic {
  background: var(--accent-light);
  box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
}

.bar-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.chart-title {
  font-size: 1.2rem;
  color: var(--accent-gold);
}

/* Advantages Grid */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.advantage-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  transition: all 0.3s;
}

.advantage-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-orange);
  box-shadow: 0 10px 40px rgba(255, 107, 53, 0.2);
}

.icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.advantage-card h3 {
  font-size: 1.6rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.advantage-card p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  background: var(--card-bg);
  padding: 1.5rem 2rem;
  border-radius: 15px;
  border-left: 4px solid var(--accent-light);
  transition: all 0.3s;
}

.timeline-item:hover {
  border-left-color: var(--accent-orange);
  transform: translateX(10px);
}

.year {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.event {
  font-size: 1.1rem;
  color: var(--text-color);
}

/* Demo Section */
.demo-section {
  padding: 100px 10%;
  text-align: center;
}

.demo-box {
  margin-top: 3rem;
  background: var(--card-bg);
  padding: 4rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.processor-comparison {
  display: flex;
  gap: 4rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.processor {
  flex: 1;
  max-width: 300px;
}

.processor h4 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
}

.processor-visual {
  width: 100%;
  height: 200px;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.gpu-chip {
  background: linear-gradient(135deg, #2a2a3a 0%, #1a1a2a 100%);
  border: 2px solid var(--accent-orange);
}

.photonic-chip {
  background: linear-gradient(135deg, #1a2a3a 0%, #0a1a2a 100%);
  border: 2px solid var(--accent-light);
}

.chip-activity {
  width: 60%;
  height: 60%;
  position: absolute;
  top: 20%;
  left: 20%;
  background: var(--accent-orange);
  opacity: 0;
  border-radius: 8px;
}

.light-stream {
  background: var(--accent-light);
  box-shadow: 0 0 40px var(--accent-light);
}

.chip-activity.active {
  animation: chip-process 1.5s ease-in-out;
}

.light-stream.active {
  animation: light-process 0.2s ease-out;
}

@keyframes chip-process {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}

@keyframes light-process {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.metrics {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.metric {
  font-size: 1.1rem;
  color: var(--text-color);
}

button {
  padding: 1.2rem 3rem;
  font-size: 1.3rem;
  background: transparent;
  color: var(--accent-light);
  border: 2px solid var(--accent-light);
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s;
  font-weight: 600;
}

button:hover {
  background: var(--accent-light);
  color: var(--bg-color);
  box-shadow: 0 0 30px var(--accent-light);
}

#result-message {
  margin-top: 2rem;
  font-size: 1.2rem;
  color: var(--accent-gold);
  min-height: 30px;
}

/* CTA Section */
.cta-section {
  padding: 100px 10%;
  text-align: center;
  background: linear-gradient(135deg, #1a1424 0%, #0f0f13 100%);
}

.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--accent-orange);
  color: white;
  border: 2px solid var(--accent-orange);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-orange);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-light);
  border: 2px solid var(--accent-light);
}

.btn-secondary:hover {
  background: var(--accent-light);
  color: var(--bg-color);
}

footer {
  padding: 3rem 5%;
  text-align: center;
  border-top: 1px solid rgba(255, 107, 53, 0.2);
}

footer p {
  margin-bottom: 0.5rem;
}

.footer-note {
  font-size: 0.9rem;
  opacity: 0.5;
}

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 2rem;
  }
  .processor-comparison {
    flex-direction: column;
    align-items: center;
  }
}

footer {
  padding: 3rem 5%;
  border-top: 1px solid rgba(255, 107, 53, 0.2);
  background: #0a0a0c;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-section h4 {
  color: var(--accent-light);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p {
  opacity: 0.8;
  line-height: 1.6;
}

.footer-section a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--accent-orange);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 107, 53, 0.1);
  opacity: 0.6;
}

/* Page-specific styles */
.page-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(ellipse at top, #1a1424 0%, #0a0a0c 50%);
  padding: 150px 5% 80px;
}

.page-hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  background: var(--gradient-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  font-size: 1.3rem;
  opacity: 0.8;
}

.content-section {
  padding: 80px 10%;
}

.content-section.alt-bg {
  background: #0f0f13;
}

.lead {
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Research page */
.research-grid, .institutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.research-card, .institution-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  transition: all 0.3s;
}

.research-card:hover, .institution-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-orange);
}

.authors {
  color: var(--accent-gold);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
}

.timeline-section, .history-timeline {
  margin-top: 2rem;
}

.breakthrough-item, .history-item {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-light);
  margin-bottom: 2rem;
}

.year {
  font-size: 1.8rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.questions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.question-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 242, 255, 0.2);
}

/* Applications page */
.app-detail {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.app-content h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.app-content h4 {
  color: var(--accent-light);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.app-content ul {
  margin-left: 1.5rem;
}

.app-content li {
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

/* About page */
.tech-explanation, .ai-explanation {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 15px;
  margin-top: 2rem;
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.component {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 242, 255, 0.2);
}

.environmental-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.stat-box {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
}

.stat-box h3 {
  color: var(--accent-orange);
  margin-bottom: 1.5rem;
}

/* Contact page */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h3 {
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.contact-form {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 15px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 8px;
  color: var(--text-color);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-light);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--accent-orange);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: var(--accent-gold);
  box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.faq-item {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-light);
}

.faq-item h3 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

@media (max-width: 1024px) {
  .research-grid, .institutions-grid, .component-grid, .environmental-stats, .contact-container, .faq-grid {
    grid-template-columns: 1fr;
  }
  .questions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
  .hero h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  nav ul {
    display: none;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  .stat-number {
    font-size: 2.5rem;
  }
}
