:root {
  --primary-cyan: #00f5ff;
  --primary-magenta: #ff00ff;
  --primary-blue: #0066ff;
  --accent-orange: #ff6600;
  --bg-dark: #0a0a0f;
  --bg-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0f0f1a 100%);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Rajdhani", "Noto Sans JP", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Canvas Container */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Main Content */
.content {
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(10, 10, 15, 0.5) 100%
  );
  pointer-events: none;
}

.logo-container {
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.logo {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text-primary);
}

.tagline {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
  z-index: 2;
}

.scroll-indicator span {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--primary-cyan);
  text-transform: uppercase;
}

.scroll-indicator::after {
  content: "";
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary-cyan), transparent);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* Sections */
section {
  padding: 8rem 2rem;
  position: relative;
}

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

.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--primary-cyan), var(--text-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--primary-cyan);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* About Section */
.about {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 245, 255, 0.02) 50%,
    transparent 100%
  );
}

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

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

.about-visual {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-core {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 245, 255, 0.2) 0%,
    transparent 70%
  );
  border: 2px solid var(--primary-cyan);
  position: relative;
  animation: pulse 4s ease-in-out infinite;
}

.ai-core::before,
.ai-core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--primary-magenta);
  animation: orbit 8s linear infinite;
}

.ai-core::before {
  width: 320px;
  height: 320px;
  top: -35px;
  left: -35px;
}

.ai-core::after {
  width: 380px;
  height: 380px;
  top: -65px;
  left: -65px;
  animation-direction: reverse;
  animation-duration: 12s;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 80px rgba(0, 245, 255, 0.5);
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Services Section */
.services {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 0, 255, 0.02) 50%,
    transparent 100%
  );
}

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

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-cyan),
    var(--primary-magenta)
  );
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-cyan);
  box-shadow: 0 20px 60px rgba(0, 245, 255, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
}

.service-card h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

/* Company Info Section */
.company-info {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 102, 255, 0.03) 50%,
    transparent 100%
  );
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.info-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.info-card h4 {
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  color: var(--primary-cyan);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.info-card p,
.info-card a {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.info-card a {
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.info-card a:hover {
  color: var(--primary-cyan);
}

/* Contact Section */
.contact {
  text-align: center;
  padding-bottom: 6rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 2px solid var(--primary-cyan);
  border-radius: 50px;
  color: var(--primary-cyan);
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 245, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.contact-btn:hover {
  background: var(--primary-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

.contact-btn:hover::before {
  left: 100%;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
}

footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer .legal {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 80px;
  height: 80px;
  border: 3px solid transparent;
  border-top-color: var(--primary-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
}

.loader::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 3px solid transparent;
  border-top-color: var(--primary-magenta);
  border-radius: 50%;
  animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Scroll Fade-in Animations */
.fade-in {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-80px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(80px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible,
.fade-in-up.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Staggered delay for cards */
.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}
.stagger-4 {
  transition-delay: 0.4s;
}

/* Scale fade effect for special elements */
.fade-scale {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Blur fade effect */
.fade-blur {
  opacity: 0;
  filter: blur(10px);
  transition:
    opacity 1s ease,
    filter 1s ease;
}

.fade-blur.visible {
  opacity: 1;
  filter: blur(0);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  section {
    padding: 4rem 1.5rem;
  }

  .service-card,
  .info-card {
    padding: 1.5rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}
