:root {
  /* WCG Brand Colors */
  --wcg-purple: #a855ff;
  --wcg-purple-soft: #c084fc;
  --wcg-text-main: #f9fafb;
  --wcg-text-muted: #9ca3af;
  --wcg-bg-black: #000000;
  --wcg-bg-dark: rgba(15, 23, 42, 0.7);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--wcg-bg-black) url("../../static/background/bg1.png") center center / cover no-repeat fixed;
  color: var(--wcg-text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60vh;
  background: radial-gradient(ellipse 120% 80% at 50% 100%, rgba(168, 85, 255, 0.3) 0%, rgba(76, 29, 149, 0.2) 35%, transparent 65%);
  pointer-events: none;
  z-index: 9999;
}

/* === NAVIGATION === */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168, 85, 255, 0.1);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.95);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--wcg-text-main);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-logo img {
  height: 32px;
  width: auto;
  margin-right: 0.75rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--wcg-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--wcg-text-main);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--wcg-purple);
  border-radius: 2px;
}

.nav-cta {
  margin-left: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--wcg-text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav {
    padding: 0.5rem 0.75rem;
    position: relative;
  }

  .nav-logo img {
    height: 24px;
  }

  .nav-toggle {
    display: block;
    font-size: 1.75rem;
    padding: 0.5rem;
  }

  .nav-cta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }

  .nav-cta .btn {
    padding: 0.35rem 0.7rem !important;
    font-size: 0.7rem !important;
    font-weight: 500;
    box-shadow: none;
  }

  .nav-menu {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(168, 85, 255, 0.1);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu a {
    font-size: 0.9rem;
    width: 100%;
    padding: 0.4rem 0;
  }
}

/* === HERO ANIMATION (Home Page Only) === */

.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(168, 85, 255, 0.3) 0%, rgba(76, 29, 149, 0.15) 40%, transparent 70%),
    var(--wcg-bg-black);
  z-index: 1;
}

.layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Starfield */
.layer-stars {
  background-image: url("../stars.png");
  background-repeat: repeat;
  background-size: cover;
  animation: starsDrift 60s linear infinite;
  opacity: 1;
  z-index: 1;
}

@keyframes starsDrift {
  from { background-position: 0 0; }
  to   { background-position: -2000px 1000px; }
}

/* Purple haze at horizon */
.layer-haze {
  background-image: url("../haze.png");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
  opacity: 0;
  transform: translateY(10%);
  z-index: 2;
  animation:
    hazeFadeIn 4s ease-out 2s forwards,
    hazeFloat   20s ease-in-out 6s infinite alternate;
}

@keyframes hazeFadeIn {
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}

@keyframes hazeFloat {
  from { transform: translateY(0%); }
  to   { transform: translateY(-3%); }
}

/* Rising sun */
.layer-sun {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 3;
}

.sun {
  width: 550px;
  height: 550px;
  max-width: 70vw;
  max-height: 70vw;
  background-image: url("../sun.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  position: relative;
  bottom: -420px;
  filter: drop-shadow(0 0 60px rgba(168, 85, 255, 0.8));
  animation: sunRise 8s cubic-bezier(.45,.01,.3,1) 1.5s forwards;
}

@keyframes sunRise {
  to {
    bottom: -40px;
  }
}

/* === CONTENT OVERLAY === */

.content {
  position: relative;
  z-index: 100;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 2rem;
  padding-top: 80px;
  pointer-events: none;
  overflow: visible;
}

.content-inner {
  position: relative;
  z-index: 20;
  margin-top: 20vh;
  text-align: center;
  max-width: 720px;
  pointer-events: auto;
  overflow: visible;
}

/* Page content sections (non-home pages) */
.page-content {
  position: relative;
  z-index: 5;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
}

/* Removed hero-actions absolute positioning for better responsive behavior */

/* Animate logo and headline on home page */
.content-inner .headline {
  opacity: 0;
  transform: translateY(20px);
  animation: contentFadeUp 1s ease-out 0.5s forwards;
}

.logo {
  font-size: 0.98rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wcg-text-muted);
  margin-bottom: 1.25rem;
}

.headline {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.4;
  margin-bottom: 0;
  overflow: visible;
  min-height: auto;
}

.headline .dynamic-line {
  display: block;
  min-height: 1.1em;
  line-height: 1.2;
  margin-top: 0.5rem;
  overflow: visible;
  padding-bottom: 0;
}

.headline > span:first-child {
  display: block;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  background: linear-gradient(90deg, var(--wcg-purple) 0%, var(--wcg-purple-soft) 50%, var(--wcg-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(168, 85, 255, 0.4));
}

.headline #dynamic-text {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--wcg-text-main);
}

.cursor-blink {
  display: inline;
  margin-left: 4px;
  color: var(--wcg-purple);
  font-weight: 300;
  animation: blink 1s infinite;
  vertical-align: baseline;
  text-shadow: 0 0 8px var(--wcg-purple);
}

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

.subheadline {
  font-size: 0.98rem;
  color: var(--wcg-text-muted);
  line-height: 1.5;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: var(--wcg-bg-dark);
  color: var(--wcg-text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

.btn-primary {
  border-color: rgba(168, 85, 255, 0.9);
  background: radial-gradient(circle at 0% 0%, rgba(192, 132, 252, 0.4), rgba(76, 29, 149, 0.95));
  box-shadow:
    0 0 30px rgba(168, 85, 255, 0.7),
    0 0 60px rgba(76, 29, 149, 0.6);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.8),
    0 0 40px rgba(168, 85, 255, 0.6);
  background: rgba(15, 23, 42, 0.9);
}

.btn-primary:hover {
  background: radial-gradient(circle at 0% 0%, rgba(216, 180, 254, 0.6), rgba(76, 29, 149, 1));
}

.btn-secondary {
  background: var(--wcg-bg-dark);
}

.btn span.icon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wcg-purple-soft);
  box-shadow:
    0 0 10px rgba(192, 132, 252, 1),
    0 0 20px rgba(168, 85, 255, 0.7);
}

@keyframes contentFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-tag {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--wcg-text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  animation: footerFade 2.5s ease-out 6.5s forwards;
}

@keyframes footerFade {
  to {
    opacity: 0.8;
  }
}

/* === PAGE CONTENT (Non-Home Pages) === */

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  pointer-events: auto;
}

.page-header {
  text-align: center;
  margin-bottom: 4rem;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-title span {
  background: radial-gradient(circle at 10% 0%, var(--wcg-purple-soft), var(--wcg-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--wcg-text-muted);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Sections */
.section {
  margin-bottom: 5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
  color: var(--wcg-text-main);
}

.section-content {
  color: var(--wcg-text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Limit grid to max 3 columns on large screens */
@media (min-width: 1000px) {
  .grid-2,
  .grid-3,
  .four-steps {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.grid-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(168, 85, 255, 0.15);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid-item:hover {
  border-color: rgba(168, 85, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(168, 85, 255, 0.2);
}

.grid-item-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(192, 132, 252, 0.15), rgba(168, 85, 255, 0.05));
  border: 1px solid rgba(168, 85, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(168, 85, 255, 0.15);
}

.grid-item-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--wcg-purple-soft);
  stroke-width: 1.5;
  fill: none;
  filter: drop-shadow(0 0 4px rgba(192, 132, 252, 0.5));
}

.grid-item:hover .grid-item-icon {
  border-color: rgba(168, 85, 255, 0.5);
  box-shadow: 0 0 30px rgba(168, 85, 255, 0.3);
}

.grid-item:hover .grid-item-icon svg {
  stroke: var(--wcg-purple);
  filter: drop-shadow(0 0 8px rgba(168, 85, 255, 0.7));
}

.grid-item h3 {
  color: var(--wcg-text-main);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.grid-item p {
  color: var(--wcg-text-muted);
  line-height: 1.7;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.feature-list li {
  padding: 1rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--wcg-text-muted);
  line-height: 1.7;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--wcg-purple);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--wcg-text-main);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(168, 85, 255, 0.2);
  border-radius: 8px;
  color: var(--wcg-text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--wcg-purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--wcg-text-muted);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
}

.contact-info {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(168, 85, 255, 0.1);
  text-align: center;
}

.contact-info p {
  color: var(--wcg-text-muted);
  margin: 0.5rem 0;
}

.contact-info a {
  color: var(--wcg-purple-soft);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--wcg-purple);
}

/* Responsive - Small screens */
@media (max-width: 600px) {
  .content-inner {
    margin-top: 18vh;
  }

  .subheadline {
    padding: 0 0.5rem;
  }

  .page-content {
    padding: 5rem 1rem 3rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Responsive - Large screens */
@media (min-width: 1500px) {
  .page-content {
    max-width: 1400px;
  }

  .page-title {
    font-size: clamp(3rem, 5vw, 5rem);
  }

  .page-subtitle {
    font-size: 1.35rem;
    max-width: 900px;
  }

  .section-title {
    font-size: clamp(2.2rem, 3vw, 3rem);
  }

  .section-content {
    font-size: 1.15rem;
  }

  .grid-item {
    padding: 2.5rem;
  }

  .grid-item h3 {
    font-size: 1.65rem;
  }

  .grid-item p {
    font-size: 1.05rem;
  }

  .headline span {
    font-size: clamp(2.8rem, 5vw, 4rem) !important;
  }

  .subheadline {
    font-size: 1.15rem;
    max-width: 900px;
  }

  .feature-list li {
    font-size: 1.1rem;
  }
}

/* Responsive - Extra large screens */
@media (min-width: 1800px) {
  .page-content {
    max-width: 1600px;
  }

  .page-title {
    font-size: clamp(3.5rem, 5vw, 5.5rem);
  }

  .page-subtitle {
    font-size: 1.45rem;
    max-width: 1000px;
  }

  .section-title {
    font-size: clamp(2.5rem, 3vw, 3.5rem);
  }

  .grid {
    gap: 2.5rem;
  }

  .grid-item {
    padding: 3rem;
  }

  .headline span {
    font-size: clamp(3rem, 5vw, 4.5rem) !important;
  }

  .subheadline {
    font-size: 1.25rem;
    max-width: 1000px;
  }
}

/* === FOOTER === */

.site-footer {
  margin-top: 3rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(168, 85, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 20px;
  max-height: 20px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-copyright {
  color: var(--wcg-text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer-linkedin {
  display: none;
}

.footer-logo {
  display: none;
}

.footer-links a {
  color: var(--wcg-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--wcg-purple-soft);
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social a {
  color: var(--wcg-text-muted);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--wcg-purple-soft);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 0 1rem;
  }

  .footer-left {
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-logo img {
    height: 16px;
    max-height: 16px;
  }

  .footer-copyright {
    font-size: 0.75rem;
  }

  .footer-links {
    gap: 1rem;
  }

  .footer-links a {
    font-size: 0.75rem;
  }

  /* Hide separate social div on mobile - show inline LinkedIn instead */
  .footer-social {
    display: none;
  }

  .footer-linkedin {
    display: inline-flex;
  }
}

