@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Syncopate:wght@400;700&display=swap');

:root {
  /* Colors - Cosmic Trio Theme */
  --bg-primary: #03000b;
  --bg-secondary: #0a0118;
  --bg-dark: #010005;
  --bg-dark-accent: #110229;
  
  --text-primary: #f0f0f5;
  --text-secondary: #a39eb8;
  --text-light: #ffffff;
  
  --color-1: #00E5FF; /* Neon Blue */
  --color-2: #FF007F; /* Vibrant Pink */
  --color-3: #39FF14; /* Electric Lime */
  
  --accent-gradient: linear-gradient(135deg, var(--color-1), var(--color-2), var(--color-3));
  --accent-gradient-hover: linear-gradient(135deg, var(--color-3), var(--color-2), var(--color-1));
  
  --shadow-glow: 0 0 15px rgba(255, 0, 127, 0.4), 0 0 30px rgba(0, 229, 255, 0.2);
  --shadow-glow-hover: 0 0 20px rgba(255, 0, 127, 0.6), 0 0 40px rgba(0, 229, 255, 0.4);
  
  /* Layout */
  --container-width: 1200px;
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  
  /* Cosmic Grid Background */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography Utility */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  text-shadow: 0 0 20px rgba(255, 0, 127, 0.3);
}

/* --- Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(3, 0, 11, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  height: 70px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(255, 0, 127, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: 'Syncopate', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a:not(.btn) {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-primary);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:not(.btn):hover {
  color: var(--color-2);
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.6);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 30px; 
  font-weight: 600;
  font-family: 'Syncopate', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: none;
  border: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

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

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-dark);
  box-shadow: var(--shadow-glow);
  border: 1px solid transparent;
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow-hover);
  transform: translateY(-3px) scale(1.02);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-1);
  color: var(--color-1);
  box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.1), 0 0 10px rgba(0, 229, 255, 0.1);
}

.btn-outline:hover {
  background: var(--color-1);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
  transform: translateY(-3px) scale(1.02);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: none;
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--nav-height) + 6rem);
  padding-bottom: 8rem;
  background-color: transparent;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.cosmic-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite ease-in-out alternate;
}

.nebula-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-1) 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.nebula-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-2) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation-delay: -5s;
}

.nebula-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-3) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
  opacity: 0.4;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -50px) scale(1.1); }
  100% { transform: translate(-50px, 50px) scale(0.9); }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 90%;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

/* Cosmic Trio Element in Hero */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.trio-shape {
  width: 400px;
  height: 400px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.05);
}

.orbit-1 {
  width: 350px;
  height: 350px;
  border-top-color: var(--color-1);
  border-bottom-color: var(--color-1);
  animation: spin 15s linear infinite;
}

.orbit-2 {
  width: 250px;
  height: 250px;
  border-left-color: var(--color-2);
  border-right-color: var(--color-2);
  animation: spin 10s linear infinite reverse;
}

.orbit-3 {
  width: 150px;
  height: 150px;
  border-top-color: var(--color-3);
  border-bottom-color: var(--color-3);
  animation: spin 8s linear infinite;
}

.orbit::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px white;
}

.orbit-1::after { background: var(--color-1); box-shadow: 0 0 15px var(--color-1); }
.orbit-2::after { background: var(--color-2); box-shadow: 0 0 15px var(--color-2); top: 50%; left: -8px; transform: translateY(-50%); }
.orbit-3::after { background: var(--color-3); box-shadow: 0 0 15px var(--color-3); }

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

/* --- Brand Marquee --- */
.marquee-section {
  background: var(--bg-secondary);
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.marquee-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary) 0%, transparent 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary) 0%, transparent 100%);
}

.marquee-content {
  display: inline-block;
  animation: scroll-marquee 30s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.2rem;
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  margin: 0 3rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.marquee-item:hover {
  color: var(--color-1);
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Services Section --- */
.services {
  padding: 8rem 0;
  background-color: var(--bg-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

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

.service-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 2;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transform: translateY(-10px);
}

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

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  transition: all 0.4s ease;
}

.service-icon.color-1 { color: var(--color-1); box-shadow: inset 0 0 15px rgba(0,229,255,0.1); }
.service-icon.color-2 { color: var(--color-2); box-shadow: inset 0 0 15px rgba(255,0,127,0.1); }
.service-icon.color-3 { color: var(--color-3); box-shadow: inset 0 0 15px rgba(57,255,20,0.1); }

.service-card:hover .service-icon.color-1 { background: rgba(0,229,255,0.1); box-shadow: 0 0 20px rgba(0,229,255,0.3); }
.service-card:hover .service-icon.color-2 { background: rgba(255,0,127,0.1); box-shadow: 0 0 20px rgba(255,0,127,0.3); }
.service-card:hover .service-icon.color-3 { background: rgba(57,255,20,0.1); box-shadow: 0 0 20px rgba(57,255,20,0.3); }


.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* --- About Section --- */
.about {
  padding: 8rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

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

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.15rem;
  font-weight: 300;
}

.stats-container {
  display: flex;
  gap: 3rem;
}

.stat-item h4 {
  font-size: 2.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  transition: transform 0.5s ease;
  filter: contrast(110%) brightness(0.9);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,0,127,0.2), rgba(0,229,255,0.2));
  mix-blend-mode: overlay;
}

/* --- Tech Stack Section --- */
.tech-stack {
  padding: 8rem 0;
  background-color: var(--bg-primary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
}

.tech-item {
  padding: 2.5rem 1rem;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s ease;
  cursor: none;
}

.tech-item i {
  font-size: 3rem;
  color: rgba(255,255,255,0.2);
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
}

.tech-item p {
  font-weight: 600;
  font-family: 'Syncopate', sans-serif;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.8rem;
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.1);
}

.tech-item:hover i {
  color: var(--color-1);
  filter: drop-shadow(0 0 10px var(--color-1));
}
.tech-item:nth-child(even):hover i {
  color: var(--color-2);
  filter: drop-shadow(0 0 10px var(--color-2));
}

/* --- Contact Section --- */
.contact {
  padding: 8rem 0;
  background-color: var(--bg-secondary);
  position: relative;
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(3, 0, 11, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.contact-container h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

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

.form-control {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-1);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
  background: rgba(255,255,255,0.05);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  border-radius: 10px;
}

/* --- Footer --- */
footer {
  background-color: var(--bg-dark);
  color: var(--text-secondary);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-about p {
  max-width: 400px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-family: 'Syncopate', sans-serif;
}

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

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

.footer-links ul li a:hover {
  color: var(--color-2);
  padding-left: 5px;
}

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

/* --- Utilities & Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* --- TrioSpace Custom Cursor --- */
@media (pointer: fine) {
  body, a, button, input, select, textarea, .tech-item {
    cursor: none;
  }
}

.cursor-center {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--text-light);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
}

.cursor-trio {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s, height 0.3s;
}

.cursor-trio .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform-origin: 20px 20px;
  transition: transform 0.2s ease;
}

/* Initial static state */
.dot-1 { background: var(--color-1); box-shadow: 0 0 8px var(--color-1); transform: translate(-50%, -50%) translate(0, -15px); }
.dot-2 { background: var(--color-2); box-shadow: 0 0 8px var(--color-2); transform: translate(-50%, -50%) translate(13px, 7px); }
.dot-3 { background: var(--color-3); box-shadow: 0 0 8px var(--color-3); transform: translate(-50%, -50%) translate(-13px, 7px); }

/* Rotating animation container */
.cursor-trio-inner {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  animation: spin 6s linear infinite;
}

/* Adjust hovered state */
.cursor-trio.hovered {
  width: 60px;
  height: 60px;
}
.cursor-trio.hovered .dot-1 { transform: translate(-50%, -50%) translate(0, -25px); }
.cursor-trio.hovered .dot-2 { transform: translate(-50%, -50%) translate(22px, 12px); }
.cursor-trio.hovered .dot-3 { transform: translate(-50%, -50%) translate(-22px, 12px); }
.cursor-trio.hovered .cursor-trio-inner { animation-duration: 2s; }

/* Responsive */
@media (max-width: 992px) {
  .hero .container, .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-image {
    display: none; /* Simplify on mobile */
  }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(3, 0, 11, 0.95);
    flex-direction: column;
    justify-content: center;
    transition: left 0.3s ease;
  }
  .nav-links.active {
    left: 0;
  }
  .mobile-menu-btn {
    display: block;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-about p {
    margin: 0 auto;
  }
}
