/* ============================================
   TIMONET — CSS Styles
   Dark Space Theme
============================================ */

:root {
  /* Colors */
  --c-timo: #3b2885; /* Purple */
  --c-net: #5136b8;
  --c-green: #9ccb3b; /* Lime green */
  --c-green-glow: rgba(156, 203, 59, 0.4);
  
  --bg-dark: #070512;
  --bg-card: rgba(18, 14, 38, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  --text-main: #f0f0f5;
  --text-muted: #a6a4c0;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  /* Transitions */
  --trans: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Particle Canvas */
#space-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at center, #110d29 0%, #070512 100%);
  pointer-events: none;
}

/* ================= Navbar ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--trans);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(7, 5, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 40px; /* Adjust as needed */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--trans);
}

.nav-links a:hover {
  color: var(--c-green);
}

.btn-nav, .btn-primary {
  background: var(--c-green);
  color: var(--bg-dark) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 800 !important;
  box-shadow: 0 4px 20px var(--c-green-glow);
  transition: var(--trans);
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn-nav:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(156, 203, 59, 0.6);
  background: #a9de3e;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--trans);
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 102;
}

.mobile-menu-btn span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(7, 5, 18, 0.98);
  backdrop-filter: blur(15px);
  z-index: 101;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s ease-in-out;
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  font-size: 1.5rem;
  font-weight: 700;
}

/* ================= Hero Section ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  background: url('../assets/space_bg.png') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(7, 5, 18, 0.9) 0%, rgba(7, 5, 18, 0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(156, 203, 59, 0.1);
  border: 1px solid rgba(156, 203, 59, 0.3);
  color: var(--c-green);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  color: var(--c-green);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.astronaut-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.glow-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  background: var(--c-net);
  filter: blur(100px);
  opacity: 0.5;
  border-radius: 50%;
  z-index: -1;
  animation: pulseOrb 4s infinite alternate;
}

.floating-astronaut {
  width: 100%;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulseOrb {
  0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* ================= Services ================= */
.services {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

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

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  transition: var(--trans);
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(156, 203, 59, 0.3);
}

.card-glow {
  position: absolute;
  top: -50px; right: -50px;
  width: 150px; height: 150px;
  background: var(--c-net);
  filter: blur(60px);
  opacity: 0.3;
  transition: var(--trans);
}

.service-card:hover .card-glow {
  opacity: 0.6;
  background: var(--c-green);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-features li {
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card.featured {
  background: rgba(59, 40, 133, 0.4);
  border-color: rgba(156, 203, 59, 0.3);
  transform: scale(1.05);
}

.service-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.badge-featured {
  position: absolute;
  top: 20px; right: -30px;
  background: var(--c-green);
  color: var(--bg-dark);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 40px;
  transform: rotate(45deg);
  text-transform: uppercase;
}

/* ================= Info Section ================= */
.info-section {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(59, 40, 133, 0.1));
}

.info-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.info-img-wrapper {
  position: relative;
  height: 400px;
  background: url('../assets/astronaut_mascot.png') center/cover; /* Fallback using mascot for now */
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-panel {
  position: absolute;
  bottom: -30px; right: -30px;
  background: rgba(18, 14, 38, 0.8);
  backdrop-filter: blur(15px);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(156, 203, 59, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.connection-dots {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

.dot.active {
  background: var(--c-green);
  box-shadow: 0 0 10px var(--c-green);
  animation: blink 2s infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

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

.info-text h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.info-text > p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.f-icon {
  width: 50px; height: 50px;
  background: rgba(156, 203, 59, 0.1);
  color: var(--c-green);
  border-radius: 50%;
  display: flex;
  justify-content: center; align-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ================= CTA Section ================= */
.cta-section {
  padding: 120px 0;
}

.cta-inner {
  background: rgba(59, 40, 133, 0.3);
  border: 1px solid rgba(156, 203, 59, 0.2);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.cta-bg-glow {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(156, 203, 59, 0.15) 0%, transparent 70%);
  z-index: -1;
}

.cta-inner h2 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.contact-form input, .contact-form select {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--trans);
}

.contact-form input:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--c-green);
  background: rgba(0,0,0,0.5);
}

.btn-submit {
  padding: 18px;
  font-size: 1.1rem;
  margin-top: 10px;
}

/* ================= Footer ================= */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 60px 0 20px;
  background: #04020a;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 300px;
}

.social-links {
  margin-top: 24px;
}

.social-links a {
  display: inline-flex;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  justify-content: center; align-items: center;
  transition: var(--trans);
}

.social-links a:hover {
  background: var(--c-green);
  color: var(--bg-dark);
}

.social-links svg {
  width: 20px; height: 20px;
}

.footer h4 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: #fff;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-links a:hover {
  color: var(--c-green);
}

.footer-contact p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ================= Animations (Reveal) ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ================= Responsive ================= */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 60px;
  }
  .hero-actions {
    justify-content: center;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card.featured {
    transform: none;
  }
  .service-card.featured:hover {
    transform: translateY(-10px);
  }
  .info-inner {
    grid-template-columns: 1fr;
  }
  .info-img-wrapper {
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    flex-direction: column;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
