
/* =================================
   CCOCORP - MAIN DESIGN
================================= */

:root {
  --background: #0b0712;
  --surface: #151020;
  --surface-light: #20152f;
  --purple: #873bff;
  --purple-light: #b98aff;
  --white: #ffffff;
  --muted: #aaa0b8;
  --border: rgba(185, 138, 255, 0.17);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--background);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

button {
  font: inherit;
  cursor: pointer;
}

/* NAVIGATION */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 8%;
  background: rgba(11, 7, 18, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #873bff, #bd72ff);
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 0 22px rgba(135, 59, 255, 0.45);
}

.dot {
  color: var(--purple-light);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--purple-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.language-btn {
  color: white;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}

.nav-cta {
  padding: 10px 17px;
  border-radius: 8px;
  background: var(--purple);
  font-size: 13px;
  font-weight: bold;
  transition: 0.3s;
}

.nav-cta:hover {
  box-shadow: 0 0 25px var(--purple);
  transform: translateY(-2px);
}

.menu-btn {
  display: none;
  color: white;
  background: transparent;
  border: none;
  font-size: 24px;
}

/* HERO */

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 90px 10%;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--purple);
  filter: blur(180px);
  opacity: 0.2;
  right: 5%;
  top: 10%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow {
  color: var(--purple-light);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.1;
  letter-spacing: -3px;
  margin-bottom: 25px;
}

.hero h1 span {
  display: block;
}

.gradient-text {
  background: linear-gradient(90deg, #a46aff, #e1c4ff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: bold;
  transition: 0.3s;
}

.button-primary {
  background: linear-gradient(135deg, #873bff, #a85dff);
  box-shadow: 0 0 25px rgba(135, 59, 255, 0.3);
}

.button-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 35px rgba(135, 59, 255, 0.6);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.button-secondary:hover {
  border-color: var(--purple-light);
  background: var(--surface-light);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 38px;
  color: var(--muted);
  font-size: 12px;
}

/* HERO VISUAL */

.hero-visual {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
  display: grid;
  place-items: center;
}

.visual-core {
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  border-radius: 40px;
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(145deg, #34165e, #120b20);
  border: 1px solid rgba(185,138,255,0.6);
  box-shadow: 0 0 70px rgba(135,59,255,0.35),
              inset 0 0 30px rgba(135,59,255,0.2);
  animation: float 5s ease-in-out infinite;
}

.visual-core span {
  color: var(--purple-light);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(185,138,255,0.25);
  border-radius: 50%;
}

.orbit-one {
  width: 260px;
  height: 260px;
  animation: rotate 18s linear infinite;
}

.orbit-two {
  width: 330px;
  height: 330px;
  border-style: dashed;
  animation: rotate 28s linear infinite reverse;
}

.floating-tag {
  position: absolute;
  padding: 9px 13px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 10px;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(135,59,255,0.15);
}

.tag-one {
  top: 35px;
  right: 0;
}

.tag-two {
  bottom: 35px;
  left: 0;
}

/* SECTIONS */

.section {
  padding: 100px 10%;
}

.section h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -1.5px;
  margin-bottom: 40px;
}

.service-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card,
.price-card {
  position: relative;
  background: linear-gradient(145deg, #191226, #100c19);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  transition: 0.35s;
}

.service-card:hover,
.price-card:hover {
  transform: translateY(-7px);
  border-color: var(--purple-light);
  box-shadow: 0 10px 40px rgba(135,59,255,0.15);
}

.card-number {
  display: block;
  color: var(--purple-light);
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 28px;
}

.service-card h3,
.price-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.service-card p,
.price-card > p:not(.price) {
  color: var(--muted);
  font-size: 14px;
}

/* PRICING */

.pricing-section {
  background: #100b19;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
}

.price-card .price {
  font-size: 40px;
  font-weight: bold;
}

.price-card .price span {
  color: var(--purple-light);
}

.price-card .button {
  margin-top: auto;
}

.featured {
  border-color: var(--purple);
  box-shadow: 0 0 35px rgba(135,59,255,0.13);
}

.plan-label {
  color: var(--purple-light);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: bold;
}

.disclaimer {
  margin-top: 25px;
  font-size: 12px;
  color: var(--muted);
}

/* QUOTE & CONTACT */

.quote-section,
.contact-section {
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.quote-section > p:not(.eyebrow),
.contact-section > p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 25px;
}

.quote-section {
  background: radial-gradient(ellipse at center, #26123d, #0b0712 70%);
}

.contact-note {
  border: 1px solid var(--border);
  padding: 15px 25px;
  border-radius: 10px;
}

/* FOOTER */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 10%;
  border-top: 1px solid var(--border);
}

.footer p {
  color: var(--muted);
  font-size: 12px;
}

/* ANIMATIONS */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

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

/* MOBILE RESPONSIVE */

@media (max-width: 900px) {
  .hero-visual {
    opacity: 0.25;
    right: -80px;
  }

  .hero-content {
    max-width: 100%;
  }

  .service-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 15px;
  }
}

@media (max-width: 650px) {
  .navbar {
    padding: 14px 5%;
  }

  .brand {
    font-size: 19px;
  }

  .nav-cta {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 25px;
    flex-direction: column;
    background: #120c1d;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    min-height: 650px;
    padding: 80px 6%;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-visual {
    right: -120px;
    opacity: 0.15;
  }

  .hero-features {
    gap: 12px;
  }

  .section {
    padding: 75px 6%;
  }

  .footer {
    padding: 25px 6%;
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================
   CCOCORP SMART QUOTE BUILDER
=================================== */

.builder-container {
  width: 100%;
  max-width: 900px;
  margin: 45px auto 0;
  text-align: left;
  background: linear-gradient(145deg, #171020, #100b18);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 35px;
}

.builder-step {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.step-number {
  color: var(--purple-light);
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: bold;
}

.builder-step h3 {
  margin: 12px 0 22px;
  font-size: 20px;
}

.builder-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.builder-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.builder-option:hover {
  border-color: var(--purple-light);
  background: var(--surface-light);
}

.builder-option:has(input:checked) {
  border-color: var(--purple);
  background: rgba(135,59,255,0.12);
  box-shadow: 0 0 20px rgba(135,59,255,0.12);
}

.builder-option input {
  accent-color: var(--purple);
  margin-top: 5px;
}

.builder-option strong {
  display: block;
  font-size: 14px;
}

.builder-option small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.pages-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 25px 0;
}

.pages-control button {
  width: 45px;
  height: 45px;
  color: white;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 23px;
  transition: 0.3s;
}

.pages-control button:hover {
  background: var(--purple);
}

#pageCount {
  font-size: 30px;
  font-weight: bold;
  min-width: 35px;
  text-align: center;
}

.builder-hint {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 15px;
}

.builder-extras {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.builder-extras label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
}

.builder-extras label:has(input:checked) {
  border-color: var(--purple);
  background: rgba(135,59,255,0.12);
}

.builder-extras input {
  accent-color: var(--purple);
}

.builder-extras small {
  color: var(--purple-light);
  font-size: 11px;
  display: block;
}

.quote-summary {
  margin-top: 30px;
  padding: 30px;
  background: linear-gradient(135deg, #291442, #160e22);
  border: 1px solid rgba(185,138,255,0.3);
  border-radius: 16px;
  text-align: center;
}

.quote-summary h3 {
  font-size: 21px;
}

.total-price {
  margin: 15px 0;
  font-size: clamp(38px, 7vw, 58px);
  font-weight: bold;
  color: var(--purple-light);
  text-shadow: 0 0 25px rgba(185,138,255,0.3);
}

#priceBreakdown {
  color: var(--muted);
  font-size: 13px;
  white-space: pre-line;
  margin-bottom: 25px;
}

.quote-summary .button {
  border: none;
  width: 100%;
  max-width: 350px;
}

@media (max-width: 650px) {
  .builder-container {
    padding: 20px;
  }

  .builder-options,
  .builder-extras {
    grid-template-columns: 1fr;
  }

  .builder-step h3 {
    font-size: 18px;
  }

  .quote-summary {
    padding: 22px 15px;
  }
}

/* ===================================
   CCOCORP CLIENT CONTACT FORM
=================================== */

.client-form {
  width: 100%;
  max-width: 800px;
  margin: 40px auto 0;
  padding: 35px;
  background: linear-gradient(145deg, #191226, #100b19);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: left;
  box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}

.form-group label {
  color: #e5d9f5;
  font-size: 13px;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  color: white;
  background: #0e0a16;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 15px rgba(135,59,255,0.18);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #756b82;
}

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

.form-group select option {
  background: #151020;
  color: white;
}

#projectSummary {
  color: #c8b4e8;
  background: #171020;
}

.form-submit {
  width: 100%;
  border: none;
}

.form-message {
  min-height: 22px;
  margin-top: 15px;
  font-size: 13px;
  color: var(--purple-light);
}

@media (max-width: 650px) {
  .client-form {
    padding: 20px;
  }

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

/* PORTFOLIO SECTION */

.portfolio-section {
    padding: 100px 8%;
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 55px;
}

.section-tag,
.demo-label {
    color: var(--purple-light);
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 700;
}

.section-heading h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin: 15px 0;
}

.section-heading h2 span {
    color: var(--purple-light);
}

.section-heading p {
    color: var(--muted);
    line-height: 1.7;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: auto;
}

.portfolio-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--purple-light);
}

.portfolio-preview {
    min-height: 240px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-preview span {
    font-size: 0.7rem;
    letter-spacing: 4px;
    opacity: 0.8;
}

.portfolio-preview h3 {
    font-size: 2.5rem;
    margin: 15px 0 5px;
}

.portfolio-preview p {
    margin: 0;
    opacity: 0.8;
}

.restaurant-preview {
    background: linear-gradient(135deg, #382015, #a35b36);
    color: white;
}

.store-preview {
    background: linear-gradient(135deg, #152e35, #477c82);
    color: white;
}

.business-preview {
    background: linear-gradient(135deg, #171a3b, #5144a5);
    color: white;
}

.creative-preview {
    background: linear-gradient(135deg, #34213e, #a15b9e);
    color: white;
}

.portfolio-info {
    padding: 28px;
}

.portfolio-info h3 {
    margin: 12px 0;
}

.portfolio-info p {
    color: var(--muted);
    line-height: 1.6;
    min-height: 50px;
}

.portfolio-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--purple-light);
    text-decoration: none;
    font-weight: 700;
}

.portfolio-link:hover {
    color: white;
}

@media (max-width: 700px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-section {
        padding: 75px 6%;
    }
}
.admin-link {
    display: inline-block;
    margin-top: 20px;
    color: #a78bfa;
    font-size: 11px;
    letter-spacing: 2px;
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.admin-link:hover {
    opacity: 1;
}

/* ==========================================
   CCOCORP VISUAL UPGRADE · MOTION & DEPTH
========================================== */
.hero {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 78% 46%, rgba(113, 44, 199, .14), transparent 36%),
    radial-gradient(ellipse at 12% 88%, rgba(61, 20, 101, .20), transparent 35%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .20;
  background-image:
    linear-gradient(rgba(185,138,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,138,255,.07) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.hero::after {
  content: "";
  position: absolute;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  right: 3%;
  top: 5%;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 20deg, rgba(144,74,255,.05), rgba(185,138,255,.18), rgba(95,35,164,.04), rgba(144,74,255,.05));
  filter: blur(48px);
  animation: hero-aura 18s ease-in-out infinite alternate;
}
.hero-glow {
  animation: glow-drift 13s ease-in-out infinite alternate;
}
.hero-visual {
  animation: visual-drift 8s ease-in-out infinite;
}
.hero-content {
  animation: hero-enter .9s cubic-bezier(.2,.7,.2,1) both;
}
.hero h1 {
  text-wrap: balance;
  text-shadow: 0 10px 45px rgba(0,0,0,.18);
}
.gradient-text {
  background-size: 220% 100%;
  animation: gradient-sweep 7s ease-in-out infinite alternate;
}
.floating-tag {
  animation: tag-hover 6s ease-in-out infinite;
}
.tag-two { animation-delay: -2.6s; }
.service-card, .portfolio-card, .price-card {
  will-change: transform;
}
.portfolio-card {
  overflow: hidden;
  transform: translateZ(0);
}
.portfolio-preview {
  transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .65s ease;
}
.portfolio-card:hover .portfolio-preview {
  transform: scale(1.045);
  filter: saturate(1.16);
}
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glow-drift {
  0% { transform: translate3d(0,0,0) scale(.94); opacity: .15; }
  100% { transform: translate3d(-35px,25px,0) scale(1.12); opacity: .27; }
}
@keyframes visual-drift {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@keyframes hero-aura {
  0% { transform: rotate(0deg) scale(.88); opacity: .48; }
  100% { transform: rotate(28deg) scale(1.08); opacity: .86; }
}
@keyframes gradient-sweep {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes tag-hover {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================
   CCOCORP VISUAL UPGRADE 2 · MORE VISIBLE MOTION
   Decorative layer only. Core layout and forms stay intact.
========================================== */
:root {
  --visual-purple: #a86bff;
  --visual-lilac: #d7b8ff;
}

body {
  background-image:
    radial-gradient(ellipse at 12% 24%, rgba(92, 34, 150, .10), transparent 34%),
    radial-gradient(ellipse at 90% 70%, rgba(80, 25, 135, .10), transparent 32%);
}

.navbar {
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.navbar.is-scrolled {
  background: rgba(9, 5, 16, .96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
  border-bottom-color: rgba(185, 138, 255, .30);
}

.page-progress {
  position: fixed;
  z-index: 300;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #7835ef, #b77aff, #f0d6ff);
  box-shadow: 0 0 15px rgba(168, 107, 255, .8);
  pointer-events: none;
}

.cursor-aura {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background: radial-gradient(360px circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(157, 94, 255, .16), transparent 72%);
  mix-blend-mode: screen;
}

.hero {
  min-height: min(760px, calc(100svh - 78px));
  background:
    radial-gradient(ellipse at 76% 48%, rgba(133, 59, 255, .24), transparent 34%),
    radial-gradient(ellipse at 8% 90%, rgba(91, 35, 150, .23), transparent 38%),
    linear-gradient(115deg, rgba(12, 7, 19, .98), rgba(18, 9, 30, .92));
}
.hero::before {
  opacity: .38;
  background-size: 46px 46px;
  animation: grid-slide 28s linear infinite;
}
.hero::after {
  width: min(58vw, 760px);
  right: 0;
  top: -2%;
  filter: blur(36px);
  background: conic-gradient(from 15deg, rgba(144,74,255,.08), rgba(185,138,255,.30), rgba(95,35,164,.06), rgba(144,74,255,.20), rgba(144,74,255,.08));
  animation: hero-aura-strong 13s ease-in-out infinite alternate;
}
.hero-glow {
  width: min(58vw, 720px);
  height: min(58vw, 720px);
  right: -2%;
  top: 2%;
  filter: blur(130px);
  opacity: .28;
  animation: glow-drift-strong 9s ease-in-out infinite alternate;
}
.hero-visual {
  width: clamp(340px, 38vw, 470px);
  height: clamp(340px, 38vw, 470px);
  right: 6%;
  filter: drop-shadow(0 30px 80px rgba(101, 43, 171, .24));
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 3%;
  border: 1px solid rgba(190, 145, 255, .24);
  border-radius: 50%;
  box-shadow: 0 0 55px rgba(145, 75, 255, .16), inset 0 0 55px rgba(145, 75, 255, .12);
  animation: ring-breathe 5.5s ease-in-out infinite;
}
.orbit-one {
  width: 70%;
  height: 70%;
  border-width: 1px;
  border-color: rgba(202, 166, 255, .45);
  box-shadow: 0 0 26px rgba(158, 98, 255, .12);
  animation-duration: 12s;
}
.orbit-two {
  width: 92%;
  height: 92%;
  border-color: rgba(185, 138, 255, .34);
  animation-duration: 19s;
}
.visual-core {
  position: relative;
  z-index: 2;
  width: clamp(150px, 16vw, 190px);
  height: clamp(150px, 16vw, 190px);
  border-radius: 46px;
  font-size: clamp(38px, 4vw, 48px);
  background: linear-gradient(145deg, rgba(73, 33, 117, .98), rgba(17, 9, 30, .98));
  border-color: rgba(212, 177, 255, .78);
  box-shadow: 0 0 26px rgba(151, 82, 255, .38), 0 0 105px rgba(119, 51, 211, .38), inset 0 0 34px rgba(175, 119, 255, .24);
  animation: core-hover 4.4s ease-in-out infinite;
}
.visual-core::after {
  content: "";
  position: absolute;
  inset: -13px;
  border: 1px solid rgba(199, 157, 255, .34);
  border-radius: 54px;
  animation: core-outline 3.8s ease-in-out infinite;
}
.floating-tag {
  z-index: 4;
  color: #f4eaff;
  background: rgba(26, 14, 42, .88);
  border-color: rgba(193, 148, 255, .42);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .28), 0 0 20px rgba(135, 59, 255, .20);
  backdrop-filter: blur(12px);
}
.tag-one { top: 18%; right: -1%; }
.tag-two { bottom: 18%; left: -1%; }
.hero-content { max-width: 680px; }
.hero h1 { font-size: clamp(48px, 6.5vw, 86px); }
.hero-description { max-width: 540px; font-size: 17px; line-height: 1.8; }

.hero-particle-layer {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-particle {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: #d9baff;
  opacity: 0;
  box-shadow: 0 0 12px 3px rgba(174, 117, 255, .55);
  animation: particle-rise var(--particle-duration, 18s) ease-in-out var(--particle-delay, 0s) infinite;
}

.service-card, .price-card {
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, rgba(32, 20, 48, .96), rgba(13, 9, 21, .98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .12);
}
.service-card::before, .price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(320px circle at var(--card-light-x, 50%) var(--card-light-y, 0%), rgba(150, 87, 255, .20), transparent 62%);
  transition: opacity .35s ease;
}
.service-card:hover::before, .price-card:hover::before { opacity: 1; }
.service-card:hover, .price-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 22px 55px rgba(95, 38, 163, .24);
}
.portfolio-card {
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  transform: perspective(1000px) rotateX(var(--card-rotate-y, 0deg)) rotateY(var(--card-rotate-x, 0deg)) translateY(0);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .20);
}
.portfolio-card:hover {
  transform: perspective(1000px) rotateX(var(--card-rotate-y, 0deg)) rotateY(var(--card-rotate-x, 0deg)) translateY(-9px) scale(1.01);
  box-shadow: 0 24px 60px rgba(91, 35, 158, .24);
}
.portfolio-preview {
  min-height: 270px;
}
.portfolio-preview::after {
  content: "";
  position: absolute;
  top: -80%;
  left: -55%;
  width: 42%;
  height: 260%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transition: left .8s ease;
  pointer-events: none;
}
.portfolio-card:hover .portfolio-preview::after { left: 125%; }

.button-primary, .nav-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.button-primary::after, .nav-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.20), transparent 72%);
  transition: transform .7s ease;
}
.button-primary:hover::after, .nav-cta:hover::after { transform: translateX(120%); }

@keyframes grid-slide {
  from { background-position: 0 0; }
  to { background-position: 46px 46px; }
}
@keyframes hero-aura-strong {
  0% { transform: rotate(0deg) scale(.86); opacity: .45; }
  100% { transform: rotate(38deg) scale(1.12); opacity: 1; }
}
@keyframes glow-drift-strong {
  0% { transform: translate3d(0, 0, 0) scale(.84); opacity: .18; }
  100% { transform: translate3d(-45px, 30px, 0) scale(1.16); opacity: .38; }
}
@keyframes ring-breathe {
  0%,100% { transform: scale(.96); opacity: .55; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes core-hover {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-13px) rotate(2deg); }
}
@keyframes core-outline {
  0%,100% { transform: scale(.98); opacity: .35; }
  50% { transform: scale(1.06); opacity: .8; }
}
@keyframes particle-rise {
  0% { opacity: 0; transform: translate3d(0, 24px, 0) scale(.65); }
  20% { opacity: .75; }
  80% { opacity: .5; }
  100% { opacity: 0; transform: translate3d(var(--particle-drift, 0px), -90px, 0) scale(1.25); }
}

@media (max-width: 900px) {
  .hero { min-height: 660px; }
  .hero-visual { right: -8%; opacity: .50; }
}
@media (max-width: 650px) {
  .hero { min-height: 680px; }
  .hero-visual { right: -38%; top: 56%; opacity: .25; }
  .hero::after { width: 90vw; right: -28%; }
  .portfolio-preview { min-height: 220px; }
  .cursor-aura { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-particle-layer, .cursor-aura, .page-progress { display: none !important; }
  .portfolio-card { transform: none !important; }
}


/* ==========================================================
   CCOCORP MOTION EXPERIENCE 3.0
   Animated brand object + living portfolio mockups
   Decorative layer only: no form, CRM, API or payment logic.
========================================================== */
.hero-visual {
  z-index: 3;
  perspective: 1100px;
  transform-style: preserve-3d;
  --scene-shift-x: 0px;
  --scene-shift-y: 0px;
}

.orbit {
  transform-style: preserve-3d;
  will-change: transform;
}
.orbit-one {
  width: 76%;
  height: 76%;
  border-color: rgba(215, 184, 255, .58);
  border-style: solid;
  transform: rotateX(67deg) rotateZ(-18deg);
  animation: orbit-tilt-a 15s linear infinite;
  translate: var(--scene-shift-x, 0px) var(--scene-shift-y, 0px);
}
.orbit-two {
  width: 100%;
  height: 100%;
  border-color: rgba(177, 119, 255, .46);
  border-style: dashed;
  transform: rotateY(66deg) rotateX(70deg) rotateZ(24deg);
  animation: orbit-tilt-b 22s linear infinite reverse;
  translate: var(--scene-shift-x, 0px) var(--scene-shift-y, 0px);
}
.orbit-three {
  position: absolute;
  width: 116%;
  height: 43%;
  border: 1px solid rgba(233, 212, 255, .26);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(-31deg);
  animation: orbit-tilt-c 12s linear infinite;
}
.orbit-node {
  position: absolute;
  width: 11px;
  height: 11px;
  top: 50%;
  left: -5px;
  border-radius: 50%;
  background: #f0dcff;
  box-shadow: 0 0 10px 3px rgba(198, 145, 255, .85), 0 0 30px rgba(159, 83, 255, .8);
}
.orbit-two .orbit-node { width: 7px; height: 7px; left: auto; right: 12%; top: 7%; }
.orbit-three .orbit-node { width: 8px; height: 8px; top: auto; bottom: 4%; left: 68%; }

.visual-energy-ring {
  position: absolute;
  z-index: 1;
  width: 58%;
  height: 58%;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, transparent 0 58%, rgba(206, 166, 255, .9) 68%, transparent 76% 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 10px rgba(167, 102, 255, .75));
  animation: energy-spin 4.8s linear infinite;
}

.visual-core-float {
  position: relative;
  z-index: 4;
  width: clamp(176px, 18vw, 214px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  animation: core-float-3d 5.2s ease-in-out infinite;
}
.visual-core {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(231, 206, 255, .9);
  border-radius: 38px;
  background:
    radial-gradient(circle at 28% 18%, rgba(226, 196, 255, .35), transparent 28%),
    radial-gradient(circle at 75% 80%, rgba(127, 54, 230, .34), transparent 42%),
    linear-gradient(145deg, #4d2478 0%, #211034 46%, #0d0818 100%);
  box-shadow: 0 0 35px rgba(156, 83, 255, .52), 0 0 110px rgba(125, 48, 221, .36), inset 0 0 38px rgba(221, 187, 255, .16);
  transform: perspective(900px) rotateX(var(--core-tilt-x, 0deg)) rotateY(var(--core-tilt-y, 0deg));
  transition: transform .2s cubic-bezier(.2,.7,.2,1);
  animation: none;
  transform-style: preserve-3d;
  will-change: transform;
}
.visual-core::before {
  content: "";
  position: absolute;
  inset: -70%;
  z-index: 1;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 34%, rgba(236, 215, 255, .22) 42%, transparent 52% 100%);
  animation: core-halo-spin 9s linear infinite;
}
.visual-core::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(228, 202, 255, .24);
  border-radius: 30px;
  box-shadow: inset 0 0 24px rgba(194, 137, 255, .12);
  pointer-events: none;
}
.core-face {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 14px;
  transform: translateZ(22px);
}
.core-eyebrow, .core-bottom-label {
  color: rgba(235, 218, 255, .74) !important;
  font-family: inherit;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2.4px;
  line-height: 1.4;
}
.core-wordmark {
  display: block;
  margin: 9px 0 10px;
  color: #fff;
  font-size: clamp(48px, 5vw, 66px);
  font-weight: 950;
  letter-spacing: -4px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, .22), 0 0 42px rgba(213, 172, 255, .34);
  animation: wordmark-breathe 3.4s ease-in-out infinite;
}
.core-wordmark span { color: #c58cff !important; }
.core-bottom-label { font-size: 7px; letter-spacing: 1.8px; }
.core-scan-line {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 217, 255, .9), transparent);
  box-shadow: 0 0 12px rgba(214, 169, 255, .9);
  animation: scan-down 4.6s ease-in-out infinite;
}
.core-shimmer {
  position: absolute;
  z-index: 3;
  top: -40%;
  left: -80%;
  width: 42%;
  height: 180%;
  transform: rotate(28deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  animation: core-shimmer 5.5s ease-in-out infinite;
  pointer-events: none;
}
.core-light-point {
  position: absolute;
  z-index: 4;
  right: 17px;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e9caff;
  box-shadow: 0 0 8px 3px rgba(188, 127, 255, .75);
  animation: point-pulse 1.8s ease-in-out infinite;
}

.visual-caption {
  position: absolute;
  z-index: 5;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  color: rgba(225, 205, 255, .60);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 3px;
  white-space: nowrap;
}
.visual-caption b { color: #bd83ff; padding: 0 5px; }
.floating-tag { animation-duration: 4.8s; }
.tag-one { animation-delay: -.9s; }
.tag-two { animation-delay: -2.8s; }

/* CSS-built project previews: small moving scenes, not static title panels. */
.portfolio-preview { isolation: isolate; }
.portfolio-preview > span,
.portfolio-preview > h3,
.portfolio-preview > p { position: relative; z-index: 4; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.preview-art { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.mock-browser {
  position: absolute;
  width: 63%;
  height: 72%;
  right: 7%;
  top: 14%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 13px;
  background: rgba(30, 19, 26, .80);
  box-shadow: 0 20px 44px rgba(0,0,0,.34);
  transform: perspective(800px) rotateY(-13deg) rotateX(5deg);
  animation: mock-window-float 6s ease-in-out infinite;
  backdrop-filter: blur(8px);
}
.mock-browser-bar { height: 16px; display: flex; gap: 4px; align-items: center; padding: 0 8px; background: rgba(255,255,255,.18); }
.mock-browser-bar i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.8); }
.restaurant-mock-body { position: relative; height: calc(100% - 16px); display: flex; align-items: center; justify-content: space-around; padding: 8px; }
.restaurant-mock-copy { width: 36%; display: grid; gap: 7px; }
.restaurant-mock-copy b { font-family: Georgia, serif; font-size: 8px; letter-spacing: 1px; color: #ffe4c8; }
.restaurant-mock-copy i { display: block; width: 88%; height: 3px; border-radius: 4px; background: rgba(255,232,210,.65); }
.restaurant-mock-copy i:nth-of-type(2) { width: 60%; opacity: .55; }
.restaurant-mock-copy em { width: 48%; height: 9px; border-radius: 3px; background: #d88b50; box-shadow: 0 0 12px rgba(255,174,104,.35); }
.food-plate { position: relative; width: clamp(54px, 9vw, 94px); aspect-ratio: 1; border: 5px solid rgba(255,245,228,.88); border-radius: 50%; background: radial-gradient(circle, #b34b2f 0 18%, #e5a65f 20% 33%, #6b9a55 35% 43%, #f2d4ad 46% 50%, #79503a 54% 100%); box-shadow: 0 7px 22px rgba(0,0,0,.38), 0 0 20px rgba(255,196,133,.26); animation: plate-turn 12s linear infinite; }
.food-plate::before, .food-plate::after { content: ""; position: absolute; width: 14px; height: 8px; background: #f1d7a1; border-radius: 100%; top: 25%; left: 36%; transform: rotate(34deg); box-shadow: 13px 20px 0 -1px #8e4b34, -10px 24px 0 -2px #e8c178; }
.food-plate span { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: #6e9c57; top: 54%; left: 58%; }
.floating-leaf { position: absolute; width: 24px; height: 12px; border-radius: 100% 0 100% 0; background: #bed28a; opacity: .82; }
.leaf-a { left: 15%; bottom: 21%; transform: rotate(-35deg); animation: leaf-drift 5s ease-in-out infinite; }
.leaf-b { right: 10%; top: 20%; transform: rotate(145deg); animation: leaf-drift 6s ease-in-out -2s infinite; }

.store-mock-card { position: absolute; width: 26%; height: 55%; top: 23%; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; background: linear-gradient(145deg, rgba(239,255,250,.9), rgba(182,220,212,.78)); box-shadow: 0 18px 34px rgba(0,0,0,.3); padding: 10px 8px; }
.store-card-a { left: 13%; transform: rotate(-11deg); animation: product-float-a 6s ease-in-out infinite; }
.store-card-b { left: 37%; top: 12%; z-index: 2; transform: rotate(3deg); animation: product-float-b 7s ease-in-out infinite; }
.store-card-c { right: 10%; transform: rotate(12deg); animation: product-float-c 5.7s ease-in-out infinite; }
.store-product-shape { width: 100%; height: 65%; border-radius: 8px; background: radial-gradient(ellipse at 50% 28%, #e8f0e5 0 10%, transparent 11%), linear-gradient(140deg, #507d79, #183f45); box-shadow: inset 0 0 20px rgba(255,255,255,.2); }
.store-card-b .store-product-shape { background: radial-gradient(circle at 52% 35%, #f5eee5 0 18%, transparent 19%), linear-gradient(140deg, #b4a18c, #64594e); }
.store-card-c .store-product-shape { background: radial-gradient(ellipse at 50% 40%, #dfd8ca 0 20%, transparent 21%), linear-gradient(140deg, #a3afad, #536c6c); }
.store-mock-card i, .store-mock-card b { display: block; height: 3px; margin-top: 7px; border-radius: 4px; background: rgba(28,67,67,.56); }
.store-mock-card b { width: 55%; height: 4px; background: #315c5b; }
.store-orbit-dot { position: absolute; top: 15%; right: 12%; width: 12px; height: 12px; border-radius: 50%; background: #d9fff4; box-shadow: 0 0 18px #c3fff1; animation: point-pulse 2.2s infinite; }

.business-dashboard { position: absolute; width: 67%; height: 72%; left: 15%; top: 14%; padding: 13px; border: 1px solid rgba(220,220,255,.42); border-radius: 12px; background: rgba(16,18,52,.82); box-shadow: 0 22px 42px rgba(0,0,0,.36); transform: perspective(850px) rotateY(11deg) rotateX(5deg); animation: dashboard-hover 6.5s ease-in-out infinite; backdrop-filter: blur(9px); }
.dashboard-top { display: flex; align-items: center; gap: 4px; color: rgba(238,235,255,.7); font-size: 6px; letter-spacing: 1px; }
.dashboard-top i { width: 4px; height: 4px; border-radius: 50%; background: #b8a4ff; }
.dashboard-top b { margin-left: auto; font-size: 6px; }
.dashboard-metrics { display: flex; gap: 7px; margin: 12px 0; }
.dashboard-metrics i { width: 31%; height: 22px; border: 1px solid rgba(174,157,255,.25); border-radius: 4px; background: linear-gradient(110deg, rgba(142,119,255,.24), rgba(255,255,255,.04)); }
.dashboard-chart { height: 48%; display: flex; align-items: end; gap: 7px; padding: 6px 9px; border-radius: 7px; background: linear-gradient(rgba(170,160,255,.08) 1px, transparent 1px); background-size: 100% 12px; }
.dashboard-chart span { flex: 1; height: var(--bar-height, 45%); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #d3a8ff, #7358d9); transform-origin: bottom; animation: chart-grow 2.8s ease-in-out infinite alternate; }
.dashboard-chart span:nth-child(2) { --bar-height: 66%; animation-delay: -.4s; }
.dashboard-chart span:nth-child(3) { --bar-height: 52%; animation-delay: -.8s; }
.dashboard-chart span:nth-child(4) { --bar-height: 82%; animation-delay: -1.2s; }
.dashboard-chart span:nth-child(5) { --bar-height: 60%; animation-delay: -1.6s; }
.dashboard-chart span:nth-child(6) { --bar-height: 92%; animation-delay: -2s; }
.dashboard-chart span:nth-child(7) { --bar-height: 74%; animation-delay: -2.4s; }
.dashboard-float-chip { position: absolute; right: 6%; bottom: 17%; padding: 8px 11px; border: 1px solid rgba(210,190,255,.42); border-radius: 9px; color: #ecddff; background: rgba(52,34,100,.94); font-size: 10px; font-weight: 800; box-shadow: 0 10px 25px rgba(0,0,0,.3); animation: chip-bob 4s ease-in-out infinite; }

.creative-frame { position: absolute; width: 31%; height: 65%; top: 18%; border: 5px solid rgba(255,255,255,.82); border-radius: 9px; background: #21152c; box-shadow: 0 18px 34px rgba(0,0,0,.35); overflow: hidden; }
.creative-frame i { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 68% 26%, rgba(255,222,187,.9) 0 10%, transparent 11%), linear-gradient(145deg, transparent 0 42%, rgba(255,255,255,.25) 43% 47%, transparent 48%), linear-gradient(135deg, #5e4b73, #c579a5 48%, #f1b889); }
.frame-back { left: 11%; transform: rotate(-14deg); animation: gallery-back 7s ease-in-out infinite; }
.frame-mid { left: 35%; top: 12%; transform: rotate(5deg); z-index: 2; animation: gallery-mid 6s ease-in-out infinite; }
.frame-front { right: 9%; transform: rotate(13deg); z-index: 3; animation: gallery-front 5.5s ease-in-out infinite; }
.frame-mid i { background: radial-gradient(circle at 45% 35%, #f4e3c5 0 13%, transparent 14%), linear-gradient(135deg, #6e8c8a, #c0a9a2 55%, #edd4b8); }
.frame-front i { background: radial-gradient(circle at 62% 26%, #f8d2ac 0 11%, transparent 12%), linear-gradient(145deg, #312a50, #8b6eab 56%, #e3a8ac); }
.creative-spark { position: absolute; top: 11%; right: 12%; color: #ffe5ff; font-size: 26px; text-shadow: 0 0 18px #fff; animation: sparkle-turn 4s ease-in-out infinite; }

/* Reveal the real content gently as each section enters the viewport. */
.motion-reveal { opacity: 0; transform: translateY(30px) scale(.985); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.motion-reveal.motion-in { opacity: 1; translate: 0 0; }
.motion-reveal[data-motion-delay="1"] { transition-delay: 90ms; }
.motion-reveal[data-motion-delay="2"] { transition-delay: 180ms; }
.motion-reveal[data-motion-delay="3"] { transition-delay: 270ms; }

@keyframes orbit-tilt-a { from { transform: rotateX(67deg) rotateZ(-18deg); } to { transform: rotateX(67deg) rotateZ(342deg); } }
@keyframes orbit-tilt-b { from { transform: rotateY(66deg) rotateX(70deg) rotateZ(24deg); } to { transform: rotateY(66deg) rotateX(70deg) rotateZ(384deg); } }
@keyframes orbit-tilt-c { from { transform: rotateX(68deg) rotateZ(-31deg); } to { transform: rotateX(68deg) rotateZ(329deg); } }
@keyframes energy-spin { to { transform: rotate(360deg); } }
@keyframes core-float-3d { 0%,100% { transform: translateY(0) rotateZ(-2deg); } 50% { transform: translateY(-17px) rotateZ(2deg); } }
@keyframes core-halo-spin { to { transform: rotate(360deg); } }
@keyframes wordmark-breathe { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.055); } }
@keyframes scan-down { 0% { top: 20%; opacity: 0; } 20% { opacity: .9; } 80% { opacity: .7; } 100% { top: 82%; opacity: 0; } }
@keyframes core-shimmer { 0%,35% { left: -80%; } 70%,100% { left: 150%; } }
@keyframes point-pulse { 0%,100% { opacity: .55; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes mock-window-float { 0%,100% { transform: perspective(800px) rotateY(-13deg) rotateX(5deg) translateY(0); } 50% { transform: perspective(800px) rotateY(-10deg) rotateX(2deg) translateY(-9px); } }
@keyframes plate-turn { to { transform: rotate(360deg); } }
@keyframes leaf-drift { 0%,100% { translate: 0 0; rotate: 0deg; } 50% { translate: 9px -8px; rotate: 24deg; } }
@keyframes product-float-a { 0%,100% { translate: 0 0; rotate: -11deg; } 50% { translate: -3px -12px; rotate: -7deg; } }
@keyframes product-float-b { 0%,100% { translate: 0 0; rotate: 3deg; } 50% { translate: 2px -15px; rotate: 7deg; } }
@keyframes product-float-c { 0%,100% { translate: 0 0; rotate: 12deg; } 50% { translate: 3px -10px; rotate: 8deg; } }
@keyframes dashboard-hover { 0%,100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -9px; rotate: .7deg; } }
@keyframes chart-grow { from { scale: 1 .65; opacity: .65; } to { scale: 1 1; opacity: 1; } }
@keyframes chip-bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes gallery-back { 0%,100% { translate: 0 0; rotate: -14deg; } 50% { translate: -4px -11px; rotate: -10deg; } }
@keyframes gallery-mid { 0%,100% { translate: 0 0; rotate: 5deg; } 50% { translate: 0 -13px; rotate: 9deg; } }
@keyframes gallery-front { 0%,100% { translate: 0 0; rotate: 13deg; } 50% { translate: 4px -8px; rotate: 9deg; } }
@keyframes sparkle-turn { 0%,100% { transform: rotate(0) scale(.8); opacity: .6; } 50% { transform: rotate(90deg) scale(1.2); opacity: 1; } }

@media (max-width: 900px) {
  .hero-visual { opacity: .72; }
  .visual-core-float { width: 174px; }
}
@media (max-width: 650px) {
  .hero-visual { opacity: .34; }
  .visual-core-float { width: 145px; }
  .visual-caption { font-size: 6px; letter-spacing: 2px; }
  .mock-browser { width: 72%; right: 5%; }
  .business-dashboard { width: 72%; left: 10%; }
}
@media (prefers-reduced-motion: reduce) {
  .visual-core-float, .visual-core::before, .core-wordmark, .core-scan-line, .core-shimmer,
  .orbit, .orbit-node, .visual-energy-ring, .mock-browser, .food-plate, .floating-leaf,
  .store-mock-card, .store-orbit-dot, .business-dashboard, .dashboard-chart span,
  .dashboard-float-chip, .creative-frame, .creative-spark {
    animation: none !important;
  }
  .motion-reveal { opacity: 1 !important; translate: none !important; transition: none !important; }
  .visual-core { transform: none !important; }
}
/* CCOCORP - Spline 3D Hero */

.hero-visual.spline-hero {
  width: clamp(340px, 42vw, 560px);
  height: clamp(340px, 42vw, 560px);
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  opacity: 1;
  animation: none;
  filter: none;
}

.hero-visual.spline-hero::before {
  display: none;
}

.hero-visual.spline-hero spline-viewer {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

@media (max-width: 900px) {
  .hero-visual.spline-hero {
    right: -4%;
    width: 430px;
    height: 430px;
    opacity: 0.85;
  }
}

@media (max-width: 650px) {
  .hero-visual.spline-hero {
    right: -18%;
    top: 57%;
    width: 350px;
    height: 350px;
    opacity: 0.8;
  }
}

/* ===========================================
   CCOCORP — SPLINE HERO INTEGRATION OVERRIDE
   Keeps the 3D logo large and blends it into
   the existing dark-purple hero design.
=========================================== */
.hero {
  isolation: isolate;
}

.hero-content {
  z-index: 4;
}

.hero-visual.spline-hero {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 3%;
  width: clamp(420px, 43vw, 590px);
  height: clamp(420px, 43vw, 590px);
  display: block;
  transform: translateY(-50%);
  opacity: 1;
  overflow: visible;
  pointer-events: none;
  animation: none !important;
  filter: drop-shadow(0 18px 55px rgba(135, 59, 255, .18));
}

.hero-visual.spline-hero::before,
.hero-visual.spline-hero::after {
  content: none !important;
  display: none !important;
}

.hero-visual.spline-hero spline-viewer {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent !important;
  --spline-viewer-background: transparent;
}

@media (max-width: 1100px) {
  .hero-visual.spline-hero {
    right: -2%;
    width: 490px;
    height: 490px;
    opacity: .88;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 700px;
  }
  .hero-visual.spline-hero {
    top: 56%;
    right: -7%;
    width: 440px;
    height: 440px;
    opacity: .48;
  }
  .hero-content {
    max-width:  min(100%, 650px);
  }
}

@media (max-width: 650px) {
  .hero {
    min-height: 720px;
  }
  .hero-visual.spline-hero {
    top: 65%;
    right: -24%;
    width: 390px;
    height: 390px;
    opacity: .34;
  }
}


/* CCO-PORTFOLIO-PREMIUM V1: appearance only; existing demo links preserved */
#portfolio.portfolio-section {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse 62% 30% at 50% 3%,rgba(123,60,230,.14),transparent 72%),#0b0712;
  overflow: hidden;
}
#portfolio.portfolio-section::before {
  content: "";
  position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image: linear-gradient(rgba(178,135,255,.034) 1px,transparent 1px),linear-gradient(90deg,rgba(178,135,255,.034) 1px,transparent 1px);
  background-size:56px 56px;
  mask-image:linear-gradient(180deg,transparent,#000 18%,#000 76%,transparent);
}
#portfolio .section-heading { max-width:740px;margin-bottom:48px; }
#portfolio .section-heading h2 { font-size:clamp(36px,4.9vw,66px);letter-spacing:-.055em;line-height:1.08; }
#portfolio .section-heading h2 span {background:linear-gradient(115deg,#ceacff,#9a65ef 55%,#e6c9ff);color:transparent;-webkit-background-clip:text;background-clip:text;}
#portfolio .section-heading > p {font-size:clamp(14px,1.35vw,17px);max-width:560px;margin:0 auto;}
#portfolio .cco-portfolio-premium-grid {gap:28px;max-width:1220px;}
#portfolio .portfolio-card {
  --cco-light-x:50%; --cco-light-y:50%;
  border:1px solid rgba(187,135,255,.22);
  border-radius:22px;
  background:linear-gradient(155deg,rgba(34,24,54,.96),rgba(13,9,24,.98));
  box-shadow:0 16px 38px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.045);
  isolation:isolate;
  transition:border-color .35s ease,box-shadow .35s ease,transform .38s ease;
}
#portfolio .portfolio-card::before {
  content:"";position:absolute;inset:0;z-index:3;pointer-events:none;
  background:radial-gradient(330px circle at var(--cco-light-x) var(--cco-light-y),rgba(184,123,255,.20),transparent 70%);
  opacity:0;transition:opacity .32s ease;
}
#portfolio .portfolio-card:is(:hover,:focus-within)::before {opacity:1;}
#portfolio .portfolio-card:is(:hover,:focus-within) {
  border-color:rgba(200,151,255,.67);
  box-shadow:0 25px 66px rgba(64,24,105,.3),0 0 28px rgba(144,70,245,.09),inset 0 1px 0 rgba(255,255,255,.1);
}
#portfolio .portfolio-preview {min-height:295px;padding:45px 28px 30px;overflow:hidden;}
#portfolio .portfolio-preview::before {
  content:"";position:absolute;inset:-35%;z-index:0;pointer-events:none;
  background:radial-gradient(ellipse at 45% 50%,rgba(255,255,255,.08),transparent 46%);
  opacity:.45;animation:ccoPortfolioAtmosphere 9s ease-in-out infinite alternate;
}
#portfolio .portfolio-preview .preview-art { transform-origin:center;transition:filter .55s ease; }
#portfolio .portfolio-card:is(:hover,:focus-within) .preview-art {filter:brightness(1.12) saturate(1.13);}
#portfolio .portfolio-preview > .cco-project-index,
#portfolio .portfolio-preview > .cco-project-live {
  position:absolute;top:18px;z-index:6;display:inline-flex;align-items:center;
  width:auto;margin:0;padding:7px 10px;border-radius:99px;
  background:rgba(13,9,26,.38);border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  color:#fff;font:750 9px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.12em;
  text-shadow:none;
}
#portfolio .portfolio-preview > .cco-project-index {left:18px;}
#portfolio .portfolio-preview > .cco-project-live {right:18px;gap:7px;}
#portfolio .cco-project-live i {display:block;width:6px;height:6px;border-radius:50%;background:#c4ffdf;box-shadow:0 0 11px rgba(153,255,208,.8);animation:ccoStatusPulse 2.3s ease-in-out infinite;}
#portfolio .portfolio-info {padding:26px 30px 30px;position:relative;z-index:4;}
#portfolio .portfolio-info h3 {font-size:clamp(19px,1.85vw,23px);letter-spacing:-.025em;}
#portfolio .portfolio-info p {max-width:370px;min-height:42px;}
#portfolio .portfolio-link {display:inline-flex;align-items:center;gap:7px;margin-top:15px;padding:10px 14px;border:1px solid rgba(184,132,255,.33);border-radius:11px;background:rgba(139,69,232,.10);color:#e1c5ff;transition:background .22s ease,transform .22s ease,border-color .22s ease,box-shadow .22s ease;}
#portfolio .portfolio-link:hover,#portfolio .portfolio-link:focus-visible {background:rgba(151,73,249,.24);border-color:rgba(200,162,255,.75);transform:translateY(-2px);box-shadow:0 6px 20px rgba(103,46,203,.2);outline-offset:3px;}
@keyframes ccoPortfolioAtmosphere {0%{transform:translate3d(-6%,1%,0) scale(.93)}100%{transform:translate3d(6%,-2%,0) scale(1.07)}}
@keyframes ccoStatusPulse {50%{opacity:.35;box-shadow:0 0 2px rgba(153,255,208,.35)}}
@media(max-width:700px){#portfolio .cco-portfolio-premium-grid{gap:22px}#portfolio .portfolio-preview{min-height:245px}#portfolio .portfolio-preview > .cco-project-live{font-size:8px}#portfolio .portfolio-info{padding:23px}}
@media(prefers-reduced-motion:reduce){#portfolio .portfolio-preview::before,#portfolio .cco-project-live i{animation:none!important}#portfolio .portfolio-card,#portfolio .portfolio-link{transition:none!important}}
/* END CCO-PORTFOLIO-PREMIUM V1 */
