/* main.css */
/* Core stylesheets are loaded in parallel via <link> tags in HTML for optimal Core Web Vitals */

/* Section Styles */
section {
  position: relative;
  padding: 120px 8%;
  z-index: 2;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

/* Background Glow Effects */
.bg-glows {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.glow-bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  mix-blend-mode: screen;
}

.glow-1 {
  top: -10%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7C3AED 0%, rgba(9, 11, 17, 0) 70%);
  animation: glow-move 20s infinite alternate ease-in-out;
}

.glow-2 {
  bottom: -10%;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #8B5CF6 0%, rgba(9, 11, 17, 0) 70%);
  animation: glow-move 25s infinite alternate-reverse ease-in-out;
}

.glow-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #A855F7 0%, rgba(9, 11, 17, 0) 70%);
  animation: glow-pulse 10s infinite ease-in-out;
}

/* Particle Canvas Wrapper */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Interactive Cursor Backlight Follower */
.mouse-backglow {
  position: fixed;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px auto;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-purple);
  margin-bottom: 15px;
  display: inline-block;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 50px;
}

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

.hero-tag {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary-purple);
  margin-bottom: 20px;
  display: inline-block;
  text-transform: uppercase;
  background: rgba(139, 92, 246, 0.1);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 25px;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: var(--purple-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

/* Hero Right Stack */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 550px;
}

/* 3D floating stack wrapper */
.stack-container {
  position: relative;
  width: 380px;
  height: 380px;
  perspective: 1200px;
}

.stack-card {
  position: absolute;
  width: 180px;
  height: 110px;
  border-radius: 16px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stack-card .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
}

.stack-card .icon-wrap svg {
  width: 22px;
  height: 22px;
}

.stack-card .card-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stack-card .card-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Position stack elements specifically and apply float animations */
.card-insta {
  top: 10%;
  left: 5%;
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(9, 11, 17, 0.4));
  border: 1px solid rgba(225, 48, 108, 0.25);
  animation: float-slow 7s infinite ease-in-out;
}
.card-insta svg { fill: #E1306C; }

.card-tiktok {
  top: 15%;
  right: 5%;
  background: linear-gradient(135deg, rgba(0, 242, 234, 0.1), rgba(250, 44, 108, 0.1), rgba(9, 11, 17, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: float-medium 6s infinite ease-in-out;
}
.card-tiktok svg { fill: #ffffff; }

.card-meta {
  top: 45%;
  left: 20%;
  background: linear-gradient(135deg, rgba(6, 104, 226, 0.15), rgba(9, 11, 17, 0.4));
  border: 1px solid rgba(6, 104, 226, 0.25);
  animation: float-fast 5s infinite ease-in-out;
}
.card-meta svg { fill: #0668E2; }

.card-google {
  bottom: 10%;
  right: 15%;
  background: linear-gradient(135deg, rgba(234, 67, 53, 0.1), rgba(66, 133, 244, 0.1), rgba(9, 11, 17, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: float-slow 8s infinite ease-in-out;
}

/* Stats Section */
.stats {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 8%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--purple-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

/* About Section */
.about {
  padding-bottom: 60px;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-content {
  flex: 1;
}

.about-logo-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
}

.about-logo-img {
  height: 52px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.25));
}

.about-visual {
  flex: 1;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Circular Brand Badge in About Us visual */
.about-circle-wrap {
  width: 310px;
  height: 310px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-circle-wrap::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 342px;
  height: 342px;
  border-radius: 50%;
  border: 1px dashed rgba(139, 92, 246, 0.35);
  animation: rotate-icon 24s linear infinite;
  pointer-events: none;
}

.about-circle-wrap::after {
  content: '';
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(124, 58, 237, 0) 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.about-circle-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  border: 2px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.3);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.about-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about-circle-wrap:hover .about-circle-frame {
  border-color: var(--hover-purple);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 60px rgba(168, 85, 247, 0.45);
}

.about-circle-wrap:hover .about-circle-img {
  transform: scale(1.06);
}

/* Footer Section */
footer {
  background: #05060A;
  border-top: 1px solid var(--border-color);
  padding: 80px 8% 40px 8%;
  position: relative;
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-normal);
}

.social-icon:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--primary-purple);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.footer-bottom {
  max-width: var(--container-max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Subpages Shared Layout Styles */
.subpage-hero {
  padding: 150px 8% 70px 8%;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--primary-purple);
}

.subpage-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subpage-title span {
  background: var(--purple-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subpage-lead {
  color: var(--text-secondary);
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 760px;
  margin-bottom: 32px;
}

.subpage-section {
  padding: 60px 8%;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
}

.benefit-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-purple);
  box-shadow: 0 0 10px var(--glow-color);
  margin-top: 8px;
  flex-shrink: 0;
}

.portfolio-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.portfolio-case-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.case-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 5px 12px;
  border-radius: 50px;
}

.legal-card {
  padding: 50px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-card h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-card ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
