/* ==========================================
   PORTFOLIO.CSS — Home page styles
   ========================================== */

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

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: var(--space-2xl) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.8);
  margin-bottom: var(--space-md);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.hero-desc {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,.6);
  line-height: var(--line-height-relaxed);
  max-width: 540px;
  margin-bottom: var(--space-md);
}

.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
}

.hero-stack span {
  padding: 0.3rem 0.8rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none;
  color: #fff;
}

.hero .btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #6d28d9);
}

.hero .btn-secondary {
  background: transparent;
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.2);
}

.hero .btn-secondary:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
  color: inherit;
}

.project-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  border-color: rgba(79,70,229,.3);
  color: #fff;
}

.project-card--featured:hover {
  color: #fff;
  border-color: rgba(79,70,229,.6);
}

.project-card--featured .project-card__desc {
  color: rgba(255,255,255,.65);
}

.project-card--featured .project-card__tags span {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.15);
}

.project-card--featured .project-card__link {
  color: #818cf8;
}

.project-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.project-card--featured .project-card__icon {
  background: rgba(255,255,255,.08);
  color: #818cf8;
}

.project-card__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: 1rem;
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.project-card__tags span {
  padding: 0.2rem 0.6rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  font-weight: 500;
}

.project-card__link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
}

/* ===== METHOD SECTION ===== */
.method-section {
  padding: var(--space-2xl) 0;
}

.method-timeline {
  max-width: 640px;
  margin: 0 auto;
}

.method-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-weight: 800;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-lg);
}

.step-content h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.step-content p {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

.method-connector {
  width: 2px;
  height: 2rem;
  background: var(--color-border);
  margin-left: 23px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-light);
}

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

.about-lead {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
}

.about-text p {
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-card {
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.about-card h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-list li {
  padding: 0.3rem 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 0;
}

.about-list li:last-child {
  border-bottom: none;
}

.about-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
}

.cta-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: var(--font-size-3xl);
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-content p {
  color: rgba(255,255,255,.6);
  margin-bottom: var(--space-md);
}

.cta-content .btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border: none;
  color: #fff;
}

.cta-content .btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #6d28d9);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-card--featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: var(--space-xl) 0;
  }

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

  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
}
