/* =========================================
   SECTIONS — Services, About, Portfolio, Contact
   ========================================= */

/* ─── SERVICES ─── */
#services { background: var(--bg-secondary); overflow: hidden; }

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  gap: 32px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: none;
  group: true;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.04), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 50px rgba(0, 229, 255, 0.08);
  background: var(--bg-card-hover);
}

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

.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.service-icon.cyan { background: rgba(0, 229, 255, 0.1); color: var(--accent-cyan); border: 1px solid rgba(0, 229, 255, 0.2); }
.service-icon.green { background: rgba(57, 255, 106, 0.1); color: var(--accent-green); border: 1px solid rgba(57, 255, 106, 0.2); }
.service-icon.purple { background: rgba(124, 58, 237, 0.12); color: #a78bfa; border: 1px solid rgba(124, 58, 237, 0.2); }
.service-icon.orange { background: rgba(255, 107, 53, 0.1); color: var(--accent-orange); border: 1px solid rgba(255, 107, 53, 0.2); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative; z-index: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
  position: relative; z-index: 1;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.service-card:hover .service-tag {
  border-color: rgba(0, 229, 255, 0.15);
  color: var(--text-secondary);
}

/* Featured card */
.service-card.featured {
  border-color: rgba(0, 229, 255, 0.25);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, var(--bg-card) 60%);
}

.service-card.featured::after {
  content: 'Popular';
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 3px 9px;
  border-radius: 4px;
}

/* ─── ABOUT ─── */
#about { overflow: hidden; }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-photo-wrap {
  position: relative;
  width: 340px; height: 420px;
}

.about-photo {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0c1a2e, #162030);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.about-photo .placeholder-icon {
  font-size: 6rem;
  opacity: 0.3;
}

.about-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(6,10,15,0.8));
  border-radius: 20px;
}

/* Floating badge cards */
.floating-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.floating-badge.badge-1 {
  top: -16px; right: -32px;
  animation: float 4s ease-in-out infinite;
}

.floating-badge.badge-2 {
  bottom: 40px; left: -40px;
  animation: float 4s 2s ease-in-out infinite;
}

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

.badge-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-icon.cyan { background: rgba(0, 229, 255, 0.1); }
.badge-icon.green { background: rgba(57, 255, 106, 0.1); }

.badge-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.badge-text span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* About content */
.about-content { padding: 20px 0; }

.about-content .section-desc { max-width: 100%; margin-bottom: 32px; }

.skill-bars { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }

.skill-bar { }

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-bar-header span:first-child {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.skill-bar-header span:last-child {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.skill-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-bar-fill.animated { transform: scaleX(1); }

.about-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── PORTFOLIO / PROJECTS ─── */
#portfolio { background: var(--bg-secondary); overflow: hidden; }

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  gap: 24px;
}

.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: none;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.06);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: none;
}

.project-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.project-card:nth-child(1) { grid-column: span 7; }
.project-card:nth-child(2) { grid-column: span 5; }
.project-card:nth-child(3) { grid-column: span 5; }
.project-card:nth-child(4) { grid-column: span 7; }
.project-card:nth-child(5) { grid-column: span 4; }
.project-card:nth-child(6) { grid-column: span 4; }
.project-card:nth-child(7) { grid-column: span 4; }

.project-preview {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-preview img { transform: scale(1.05); }

.project-preview-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.2;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 15, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay { opacity: 1; }

.overlay-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-primary);
  transition: var(--transition);
  cursor: none;
}

.overlay-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.project-info { padding: 22px 22px 24px; }

.project-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  display: block;
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-item {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 3px 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  color: var(--text-muted);
}

/* ─── TESTIMONIALS ─── */
#testimonials { overflow: hidden; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
  transform: translateY(-4px);
}

.quote-icon {
  font-size: 2rem;
  color: var(--accent-cyan);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.author-info span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.stars span { color: #fbbf24; font-size: 0.85rem; }

/* ─── CONTACT ─── */
#contact { background: var(--bg-secondary); overflow: hidden; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.contact-info { padding-top: 10px; }

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: none;
}

.contact-method:hover {
  border-color: rgba(0, 229, 255, 0.25);
  background: var(--bg-card-hover);
}

.method-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.method-details strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.method-details span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  cursor: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}

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

.form-group select option { background: var(--bg-card); }

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
  border-radius: 10px;
  justify-content: center;
  margin-top: 6px;
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 14px 0 24px;
  max-width: 260px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: none;
}

.social-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: none;
}

.footer-col ul a:hover {
  color: var(--accent-cyan);
  padding-left: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-bottom span { color: var(--accent-cyan); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .about-photo-wrap { max-width: 360px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .project-card:nth-child(n) { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .services-header, .portfolio-header { flex-direction: column; align-items: flex-start; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── ANIMATIONS ON SCROLL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
