/* Zonix IT Company — Component Styles */

/* Navigation */
.nav-link {
  position: relative;
  color: #475569;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #4f46e5;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Service card icon */
.service-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(124, 58, 237, 0.1));
}

/* Team card */
.team-card img {
  transition: transform 0.5s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

/* Pricing card featured */
.pricing-card.featured {
  border: 2px solid #4f46e5;
  position: relative;
  transform: scale(1.02);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  border-radius: 9999px;
  background: var(--gradient-hero);
}

/* Blog card */
.blog-card .blog-image {
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.08);
}

/* Portfolio card */
.portfolio-card {
  position: relative;
}

/* Portfolio overlay */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, transparent 60%);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

/* Footer */
.footer-link {
  color: #94a3b8;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #fff;
}

/* Form inputs */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Newsletter */
.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem 0 0 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.newsletter-input:focus {
  outline: none;
  border-color: #4f46e5;
}

/* Hamburger */
.hamburger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: #1e293b;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Dashboard mockup float */
.mockup-float {
  animation: mockupFloat 6s ease-in-out infinite;
}

@keyframes mockupFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

/* Floating card in hero */
.floating-card {
  animation: cardFloat 5s ease-in-out infinite;
}

.floating-card:nth-child(2) { animation-delay: 1s; }
.floating-card:nth-child(3) { animation-delay: 2s; }

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Before/After slider */
.before-after {
  position: relative;
  overflow: hidden;
}

.before-after .after-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}

/* Career badge */
.career-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: #e0e7ff;
  color: #4338ca;
}

/* Breadcrumb */
.breadcrumb a {
  color: #64748b;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #4f46e5;
}

/* CTA banner */
.cta-banner {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
