/* HERO SECTION */
.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: 12rem;
  padding-bottom: 6rem;
  z-index: 5;
  position: relative;
}

/* Add a radial glow behind the hero text */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 30%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 2rem;
  letter-spacing: -0.15rem;
  position: relative;
}

/* Animated underline on the gradient word */
.hero-title span.reveal-word {
  display: block;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary-color) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title span.reveal-word:nth-child(1) { animation-delay: 0.1s; }
.hero-title span.reveal-word:nth-child(3) { animation-delay: 0.25s; }
.hero-title span.reveal-word:nth-child(4) { animation-delay: 0.4s; }

.hero-title span.gradient-word {
  display: block;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color), var(--accent-color));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both,
             gradientShift 4s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Live Available Dot */
.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
  animation: livePulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px rgba(16, 185, 129, 0.8); }
  50% { opacity: 0.6; transform: scale(1.4); box-shadow: 0 0 12px rgba(16, 185, 129, 0.5); }
}

.hero-badge-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}

/* Terminal indicator dot in text wrapper */
.hero-terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
  animation: livePulse 2s ease-in-out infinite;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  font-family: var(--font-display);
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  animation: fadeUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

.hero-scroll-line {
  width: 30px;
  height: 1px;
  background: linear-gradient(to right, var(--primary-color), transparent);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  right: -100%;
  width: 50%;
  height: 100%;
  background: white;
  animation: scrollLineScan 2s ease-in-out infinite;
}

@keyframes scrollLineScan {
  0% { right: -50%; }
  100% { right: 110%; }
}

/* Orbit Glow Aura */
.orbit-glow-aura {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, rgba(6, 182, 212, 0.06) 40%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: orbitAuraPulse 4s ease-in-out infinite;
  z-index: 1;
}

@keyframes orbitAuraPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}


.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* 3D Laptop Container */
.hero-3d-container {
  position: relative;
  width: 100%;
  height: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#canvas3d-hero {
  width: 100%;
  height: 100%;
}

/* Interactive Stats */
.interactive-stats {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 20px;
  backdrop-filter: blur(15px);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

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

/* WEBSITE SHOWCASE */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.showcase-card {
  height: 540px;
  background: rgba(15, 15, 30, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s,
              box-shadow 0.4s;
}

.showcase-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.25);
}

.showcase-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.showcase-preview-frame {
  width: 100%;
  height: 60%;
  background: #0d0d1a;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-preview-frame iframe,
.showcase-img {
  width: 100%;
  height: 100%;
  border: none;
  transform: scale(1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  object-fit: cover;
}

.showcase-card:hover iframe,
.showcase-card:hover .showcase-img {
  transform: scale(1.05);
}

.showcase-reflection {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 5;
}

.showcase-details {
  padding: 1.2rem 1.5rem;
  background: rgba(10, 10, 20, 0.9);
  height: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.showcase-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--text-primary);
  border-radius: 12px;
  padding: 0.65rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  margin-top: 0.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.showcase-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  opacity: 0.95;
}

.showcase-btn i {
  font-size: 0.8rem;
}

.showcase-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.showcase-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.showcase-tag-item {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  color: var(--accent-color);
  font-weight: 600;
}

/* SERVICES SECTION */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.service-card {
  background: rgba(10, 10, 25, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  transition: all 0.4s ease;
}

.service-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
}

.service-scene {
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Service Animation Visuals inside scenes */
.scene-web-dev .browser-mock {
  width: 130px;
  height: 90px;
  border: 2px solid var(--accent-color);
  border-radius: 6px;
  position: relative;
}

.scene-web-dev .browser-mock::before {
  content: '•••';
  color: var(--accent-color);
  position: absolute;
  top: 2px;
  left: 6px;
  font-size: 10px;
}

.scene-web-dev .browser-line {
  height: 4px;
  background: var(--text-secondary);
  margin: 12px;
  border-radius: 2px;
  width: 0%;
  animation: lineBuild 2s infinite ease-out;
}

.scene-web-dev .browser-line:nth-child(2) {
  animation-delay: 0.5s;
  width: 0%;
}

.scene-uiux .wireframe-grid {
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  animation: designTransition 3s infinite ease-in-out;
}

.scene-seo .seo-graph {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
}

.scene-seo .seo-bar {
  width: 12px;
  background: var(--primary-color);
  height: 0%;
  border-radius: 4px;
  animation: graphRaise 2s infinite ease-out alternate;
}

.scene-ai .ai-robot-screen {
  font-family: monospace;
  font-size: 0.75rem;
  color: #10b981;
  background: #000;
  padding: 10px;
  border-radius: 6px;
  width: 150px;
  height: 100px;
  overflow: hidden;
  border: 1px solid #10b981;
}

/* WHY DKG */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.comparison-card {
  padding: 3rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-card.others {
  border-color: rgba(239, 68, 68, 0.2);
}

.comparison-card.dkg {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(6, 182, 212, 0.05));
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.1);
}

.comparison-header {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comparison-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 10px;
  transition: transform 0.3s;
}

.comparison-item.cross {
  color: #ef4444;
}

.comparison-item.check {
  color: #10b981;
}

.comparison-item:hover {
  transform: translateX(10px);
}

/* PROCESS SECTION (Scroll Story) */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 4rem auto;
  padding-left: 3rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.process-step {
  position: relative;
  margin-bottom: 5rem;
  opacity: 0.5;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-step.active {
  opacity: 1;
  transform: translateX(10px);
}

.process-node {
  position: absolute;
  left: -3rem;
  top: 5px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 4px solid var(--accent-color);
  z-index: 2;
  transition: all 0.3s;
}

.process-step.active .process-node {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-color);
  transform: translateX(-50%) scale(1.3);
}

.process-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.process-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* LIVE CODE SECTION */
.live-code-container {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  background: #020208;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
}

.live-code-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.live-code-dots {
  display: flex;
  gap: 8px;
}

.live-code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.live-code-title {
  font-family: monospace;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.live-code-body {
  padding: 2.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  color: #38bdf8;
  line-height: 1.6;
  min-height: 250px;
  position: relative;
}

.code-cursor {
  display: inline-block;
  width: 8px;
  height: 1.2rem;
  background: var(--accent-color);
  margin-left: 4px;
  animation: cursorBlink 0.8s infinite;
}

/* Code to Live website overlay */
.live-website-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--primary-color) 0%, var(--bg-color) 100%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-website-preview.active {
  opacity: 1;
  pointer-events: auto;
}

/* TECHNOLOGIES ORBIT */
.tech-orbit-container {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbit-center-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 30px var(--primary-glow);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  z-index: 10;
}

.orbit-logo-img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--primary-glow));
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px var(--primary-glow));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 15px var(--primary-glow));
  }
}


#canvas3d-orbit {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* TESTIMONIALS CAROUSEL */
.testimonials-slider {
  display: flex;
  gap: 2.5rem;
  padding: 2rem 0;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
  scroll-behavior: smooth;
  cursor: grab;
}

.testimonials-slider::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.testimonial-card {
  min-width: 400px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  position: relative;
  transition: border-color 0.3s;
}

.testimonial-card:hover {
  border-color: var(--accent-color);
}

.testimonial-quote {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.client-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.client-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* PRICING SYSTEM */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.pricing-card {
  cursor: none !important;
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-plan {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.pricing-cost {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-color);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-secondary);
}

.pricing-feature-item i {
  color: var(--accent-color);
}

.pricing-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card.expanded .pricing-details {
  max-height: 500px;
  margin-top: 2rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
}

/* FAQ ACCORDION */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: var(--accent-color);
}

.faq-question {
  padding: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  cursor: none !important;
}

.faq-answer {
  padding: 0 1.8rem;
  max-height: 0;
  overflow: hidden;
  color: var(--text-secondary);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
  padding-bottom: 1.8rem;
  max-height: 200px;
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* CONTACT SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ANIMATION KEYFRAMES HELPER */
@keyframes lineBuild {
  0% { width: 0%; }
  100% { width: 80%; }
}

@keyframes graphRaise {
  0% { height: 10%; }
  100% { height: 90%; }
}

@keyframes cursorBlink {
  50% { border-color: transparent; }
}

@keyframes designTransition {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; border-color: var(--accent-color); }
}

@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-3d-container {
    height: 350px;
  }
  .interactive-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .comparison-container {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
