/* ============================================
   HOME PAGE - Section Styles
   ============================================ */

/* -------------------------
   HERO SECTION
   ------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
  position: relative;
  overflow: hidden;
}

/* Grid background with gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 148, 245, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 148, 245, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle glow accent */
.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(90, 148, 245, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }

  100% {
    transform: translate(-30px, 30px) scale(1.15);
    opacity: 0.6;
  }
}

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

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

.hero-subtitle {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  margin-bottom: var(--space-lg);
  font-family: 'Courier New', monospace;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.subtitle-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--text-tertiary);
  color: #5A94F5;

}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 1.8rem + 3vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-xl);
  font-style: normal;
}

.hero-description {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
  font-family: var(--font-sans);
}

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

/* Hero Image with spinning dashed border */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-image-wrapper {
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  position: relative;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-full);
}

/* Spinning dashed frame */
.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: var(--radius-full);
  border: 1.5px dashed rgba(90, 148, 245, 0.5);
  animation: spinFrame 25s linear infinite;
  z-index: 2;
  pointer-events: none;
}

/* Second dashed frame, opposite spin */
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: -28px;
  border-radius: var(--radius-full);
  border: 1px dashed rgba(90, 148, 245, 0.2);
  animation: spinFrame 35s linear infinite reverse;
  z-index: 1;
  pointer-events: none;
}

/* Dot indicator on the dashed ring */
.hero-image-dot {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 0 10px var(--accent-primary);
  animation: spinDot 25s linear infinite;
  transform-origin: 50% calc(150px + 14px);
}

@keyframes spinDot {
  0% {
    transform: rotate(0deg) translateX(-50%);
  }

  100% {
    transform: rotate(360deg) translateX(-50%);
  }
}

@keyframes spinFrame {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Available badge */
.hero-available-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-lg);
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.hero-available-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image-wrapper {
    width: 220px;
    height: 220px;
  }
}

/* -------------------------
   MARQUEE SECTION
   ------------------------- */
.marquee-section {
  padding: var(--space-md) 0;
  background: #000000;
  border: none;
  overflow: hidden;
  margin-top: var(--space-3xl);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: 0 var(--space-lg);
  white-space: nowrap;
}

.marquee-item span {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.marquee-item span:hover {
  color: var(--accent-primary);
}

.marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* -------------------------
   ABOUT PREVIEW SECTION
   ------------------------- */
.about-preview {
  text-align: center;
}

.about-preview-text {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.stat-item {
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.stat-item:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.tool-icon {
  display: block;
  margin-bottom: var(--space-xs);
}

.tool-text {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
}

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

.service-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-lg);
}

.service-card h4 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.service-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* -------------------------
   PROCESS SECTION
   ------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.process-step {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 50px;
  right: -10%;
  width: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
}

.process-step:last-child::after {
  display: none;
}

.process-number {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--accent-glow);
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--accent-primary);
  margin: 0 auto var(--space-lg);
  transition: all var(--transition-base);
}

.process-step:hover .process-number {
  background: var(--accent-primary);
  color: white;
  box-shadow: var(--shadow-glow-strong);
  transform: scale(1.1);
}

.process-step h5 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.process-step p {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  max-width: 200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step::after {
    display: none;
  }
}

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

/* -------------------------
   TOOLKIT SECTION
   ------------------------- */
.toolkit-section {
  text-align: center;
}

.toolkit-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.toolkit-item {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all var(--transition-base);
}

.toolkit-item:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* -------------------------
   LATEST PROJECTS SECTION
   ------------------------- */
.latest-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .latest-projects-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------
   CTA SECTION
   ------------------------- */
.cta-section {
  text-align: center;
  padding: var(--space-5xl) 0;
}

.cta-section h2 {
  font-size: var(--fs-4xl);
  font-weight: 800;
  margin-bottom: var(--space-2xl);
}

.cta-section p {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
}