/* Base Styles */
:root {
  --primary-color: #8a2be2;
  --secondary-color: #00ffff;
  --background-color: #0a0a0a;
  --text-color: #ffffff;
  --card-background: rgba(25, 25, 35, 0.8);
  --glitch-color: #ff00ff;
}

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

body {
  font-family: 'Rajdhani', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.5rem;
  font-weight: bold;
  font-family: sans-serif;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.3s ease;
  background-color: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.5rem;
  color: var(--text-color);
  position: relative;
}

.logo span {
  color: var(--primary-color);
}

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

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  letter-spacing: 1px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  z-index: 1;
  animation: fadeIn 1.5s ease-in-out;
}

.hero-title {
  margin-bottom: 1.5rem;
  font-family: 'Press Start 2P', cursive;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.4s ease;
}

.cta-button:hover {
  background-color: #7928ca;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
}

.cta-button:hover::before {
  left: 100%;
}

/* Section Styles */
.section {
  padding: 6rem 2rem;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  font-family: 'Press Start 2P', cursive;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

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

.service-card {
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(138, 43, 226, 0.1), transparent);
  z-index: -1;
}

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

.service-card h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  position: relative;
}

.service-card h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.model-container {
  height: 150px;
  margin-top: 1.5rem;
  position: relative;
}

/* Footer */
footer {
  background-color: rgba(15, 15, 20, 0.9);
  padding: 3rem 2rem;
  position: relative;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  list-style: none;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin: 0 1rem;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
  text-align: center;
}

/* Glitch Effect */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch::before {
  color: #ff00ff;
  z-index: -1;
  animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
  color: #00ffff;
  z-index: -2;
  animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-3px, 3px);
  }
  40% {
    transform: translate(-3px, -3px);
  }
  60% {
    transform: translate(3px, 3px);
  }
  80% {
    transform: translate(3px, -3px);
  }
  100% {
    transform: translate(0);
  }
}

@keyframes glitch-anim2 {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(5px, 5px);
  }
  40% {
    transform: translate(5px, -5px);
  }
  60% {
    transform: translate(-5px, 5px);
  }
  80% {
    transform: translate(-5px, -5px);
  }
  100% {
    transform: translate(0);
  }
}

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

/* Media Queries */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  nav ul li {
    margin-left: 1rem;
  }
  
  nav ul li a {
    font-size: 0.8rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 4rem 1rem;
  }
  
  .services {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links li {
    margin: 0.5rem 0;
  }
}

model-viewer {
  width: 500px;
  height: 500px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

#contact {
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(5, 5, 20, 0.9) 0%, rgba(10, 10, 30, 0.8) 100%);
  z-index: -1;
}

.contact-terminal {
  max-width: 700px;
  margin: 0 auto;
  background-color: #000;
  border: 2px solid #8a2be2;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.5), 
              0 0 60px rgba(138, 43, 226, 0.3), 
              0 0 90px rgba(138, 43, 226, 0.1);
  position: relative;
}

.terminal-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.terminal-dots {
  display: flex;
  margin-right: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.dot-red {
  background-color: #ff5f56;
}

.dot-yellow {
  background-color: #ffbd2e;
}

.dot-green {
  background-color: #27c93f;
}

.terminal-title {
  color: #8a2be2;
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  letter-spacing: 1px;
}

.terminal-content {
  padding: 10px 0;
}

.command-line {
  display: flex;
  margin-bottom: 15px;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  color: #00ff00;
}

.prompt {
  color: #8a2be2;
  margin-right: 10px;
}

.command {
  color: #f1f1f1;
}

.response {
  color: #f1f1f1;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 25px;
  padding-left: 20px;
  border-left: 2px solid #8a2be2;
}

.typing {
  display: flex;
  align-items: center;
}

.typing-prompt {
  color: #8a2be2;
  margin-right: 10px;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
}

.typing-input {
  flex: 1;
  background-color: transparent;
  border: none;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  color: white;
  caret-color: #8a2be2;
  outline: none;
  padding: 5px 0;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 16px;
  background-color: #8a2be2;
  margin-left: 5px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.contact-methods {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
}

.contact-method {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-5px);
  filter: brightness(1.2);
}

.contact-icon {
  font-size: 24px;
  color: #8a2be2;
  margin-bottom: 10px;
}

.contact-label {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: white;
}

.section-title {
  text-align: center;
  color: #8a2be2;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #8a2be2, transparent);
}