/* =============================================
   ENVISION CREATIVE LLC — Design System & Styles
   ============================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Color Palette */
  --clr-bg:          hsl(230, 25%, 7%);
  --clr-bg-elevated: hsl(230, 22%, 10%);
  --clr-surface:     hsl(230, 20%, 13%);
  --clr-surface-2:   hsl(230, 18%, 16%);
  --clr-border:      hsla(230, 15%, 30%, .35);
  --clr-text:        hsl(220, 20%, 92%);
  --clr-text-muted:  hsl(220, 12%, 58%);
  --clr-accent:      hsl(263, 75%, 58%);   /* Violet */
  --clr-accent-glow: hsla(263, 80%, 58%, .35);
  --clr-cyan:        hsl(187, 96%, 42%);
  --clr-cyan-glow:   hsla(187, 96%, 42%, .25);
  --clr-gradient:    linear-gradient(135deg, var(--clr-accent), var(--clr-cyan));

  /* Typography */
  --ff-heading: 'Outfit', sans-serif;
  --ff-body:    'Inter', sans-serif;
  --ff-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs:  .5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Misc */
  --radius:    12px;
  --radius-lg: 20px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ---------- Utility ---------- */
.container {
  width: min(1200px, 90%);
  margin-inline: auto;
}

.gradient-text {
  background: var(--clr-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  width: 10px;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 640px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  font-family: var(--ff-body);
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--clr-gradient);
  color: #fff;
  box-shadow: 0 4px 24px var(--clr-accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--clr-accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
}

.btn-outline:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 0 16px var(--clr-accent-glow);
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background .4s, box-shadow .4s;
}

.navbar.scrolled {
  background: hsla(230, 25%, 7%, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--clr-border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

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

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-gradient);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--clr-text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: .6rem 1.4rem !important;
  font-size: .85rem !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .45;
  animation: float 10s ease-in-out infinite;
}

.hero-bg .orb-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -5%;
  background: var(--clr-accent);
}

.hero-bg .orb-2 {
  width: 400px;
  height: 400px;
  bottom: -15%;
  left: -10%;
  background: var(--clr-cyan);
  animation-delay: -5s;
}

.hero-bg .orb-3 {
  width: 250px;
  height: 250px;
  top: 40%;
  left: 45%;
  background: hsl(300, 60%, 50%);
  animation-delay: -2.5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -30px) scale(1.05); }
  66%      { transform: translate(-20px, 20px) scale(.95); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem;
  font-family: var(--ff-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--clr-cyan);
  background: hsla(187, 96%, 42%, .08);
  border: 1px solid hsla(187, 96%, 42%, .2);
  border-radius: 50px;
  margin-bottom: var(--space-md);
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--clr-cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--clr-cyan-glow); }
  50%      { opacity: .6; box-shadow: 0 0 0 8px transparent; }
}

.hero h1 {
  font-family: var(--ff-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual .terminal {
  width: 100%;
  max-width: 480px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.2rem;
  background: var(--clr-surface-2);
  border-bottom: 1px solid var(--clr-border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--clr-text-muted);
}

.terminal-body {
  padding: 1.4rem;
  font-family: var(--ff-mono);
  font-size: .82rem;
  line-height: 1.8;
  min-height: 220px;
}

.terminal-body .line {
  opacity: 0;
  animation: typeIn .5s forwards;
}

.terminal-body .line .prompt {
  color: var(--clr-cyan);
}

.terminal-body .line .cmd {
  color: var(--clr-text);
}

.terminal-body .line .output {
  color: var(--clr-text-muted);
}

.terminal-body .line .success {
  color: #28c840;
}

@keyframes typeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   PRODUCTS & SERVICES
   ============================================= */
.products {
  padding: var(--space-2xl) 0;
  position: relative;
}

.products-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.products-header .section-subtitle {
  margin-inline: auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-md);
}

.product-card {
  position: relative;
  padding: var(--space-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-gradient);
  opacity: 0;
  transition: opacity .4s;
  z-index: 0;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--clr-accent);
  box-shadow: 0 16px 60px rgba(0, 0, 0, .35);
}

.product-card:hover::before {
  opacity: .04;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.product-icon.violet {
  background: hsla(263, 75%, 58%, .12);
  color: var(--clr-accent);
}

.product-icon.cyan {
  background: hsla(187, 96%, 42%, .12);
  color: var(--clr-cyan);
}

.product-icon.pink {
  background: hsla(330, 80%, 55%, .12);
  color: hsl(330, 80%, 60%);
}

.product-icon.amber {
  background: hsla(38, 92%, 55%, .12);
  color: hsl(38, 92%, 55%);
}

.product-card h3 {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.product-card p {
  color: var(--clr-text-muted);
  font-size: .93rem;
  margin-bottom: var(--space-md);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.product-tag {
  padding: .3rem .75rem;
  font-size: .72rem;
  font-family: var(--ff-mono);
  color: var(--clr-text-muted);
  background: var(--clr-bg-elevated);
  border: 1px solid var(--clr-border);
  border-radius: 6px;
}

/* =============================================
   FEATURES / WHY SECTION
   ============================================= */
.features {
  padding: var(--space-2xl) 0;
}

.features .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.features-content .section-subtitle {
  margin-bottom: var(--space-lg);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(263, 75%, 58%, .1);
  color: var(--clr-accent);
  border-radius: 10px;
  font-size: 1.1rem;
  margin-top: 2px;
}

.feature-item h4 {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .25rem;
}

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

/* Stats visual */
.features-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.stat-card {
  padding: var(--space-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 0 24px var(--clr-accent-glow);
}

.stat-card .stat-number {
  font-family: var(--ff-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: .25rem;
}

.stat-card .stat-label {
  font-size: .82rem;
  color: var(--clr-text-muted);
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: var(--space-2xl) 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.about-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--clr-gradient);
}

.about-card .logo-large {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
}

.about-card h3 {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.about-card .tagline {
  font-family: var(--ff-mono);
  font-size: .82rem;
  color: var(--clr-cyan);
  margin-bottom: var(--space-sm);
}

.about-card p {
  color: var(--clr-text-muted);
  font-size: .93rem;
}

.about-content .section-subtitle {
  margin-bottom: var(--space-md);
}

.about-content p + p {
  margin-top: var(--space-sm);
}

.about-values {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.value-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.2rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition);
}

.value-chip:hover {
  border-color: var(--clr-cyan);
  box-shadow: 0 0 12px var(--clr-cyan-glow);
}

/* =============================================
   CONTACT / CTA
   ============================================= */
.contact {
  padding: var(--space-2xl) 0;
}

.contact-card {
  position: relative;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--clr-accent-glow) 60deg, transparent 120deg);
  animation: rotateBorder 8s linear infinite;
  z-index: 0;
}

.contact-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--clr-surface);
  border-radius: calc(var(--radius-lg) - 1px);
  z-index: 1;
}

.contact-card > * {
  position: relative;
  z-index: 2;
}

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

.contact-card .section-title {
  margin-bottom: var(--space-sm);
}

.contact-card .section-subtitle {
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  max-width: 640px;
  margin-inline: auto;
}

.contact-form .full-width {
  grid-column: 1 / -1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .85rem 1.1rem;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  color: var(--clr-text);
  font-family: var(--ff-body);
  font-size: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px var(--clr-accent-glow);
}

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

.contact-form .btn {
  justify-self: center;
  grid-column: 1 / -1;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--clr-border);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: .95rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: .85rem;
  color: var(--clr-text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--clr-text);
}

.footer-copy {
  font-size: .8rem;
  color: var(--clr-text-muted);
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero p { margin-inline: auto; }

  .hero-visual {
    display: none;
  }

  .features .container {
    grid-template-columns: 1fr;
  }

  .features-visual { order: -1; }

  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-visual { max-width: 420px; margin-inline: auto; }
  .about-values { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: hsla(230, 25%, 7%, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform .4s;
    z-index: 99;
  }

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

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 100;
  }

  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}
