/* Custom CSS for DigitalCraft Portfolio */

:root {
  --primary-color: #8b5cf6;
  --secondary-color: #ec4899;
  --dark-color: #1f2937;
  --light-color: #f8fafc;
}

/* Global Styles */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  padding-top: 76px;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient Button */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
  color: white;
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1e1b4b, #312e81, #4338ca);
  z-index: -1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1.1;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid white;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  animation: bounce 2s infinite;
}

.scroll-dot {
  width: 4px;
  height: 12px;
  background: white;
  border-radius: 2px;
  margin-top: 8px;
  animation: pulse 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

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

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

/* Service Detail Cards */
.service-detail-card {
  transition: all 0.3s ease;
}

.service-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Portfolio Cards */
.portfolio-card {
  transition: all 0.3s ease;
  overflow: hidden;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  transition: transform 0.3s ease;
  height: 250px;
  object-fit: cover;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.portfolio-content {
  text-align: center;
  color: white;
}

/* Team Cards */
.team-card {
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #1e1b4b, #312e81, #4338ca);
  position: relative;
}

/* Process Steps */
.process-step {
  position: relative;
}

.process-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.process-icon i {
  font-size: 2rem;
  color: white;
}

.step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  background: white;
  color: var(--primary-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Values Icons */
.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.value-icon i {
  font-size: 2rem;
  color: white;
}

/* Portfolio Filter */
.filter-btn {
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: transparent;
  color: white;
}

.portfolio-item {
  transition: all 0.3s ease;
}

.portfolio-item.hide {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Bootstrap Overrides */
.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .service-icon,
  .process-icon,
  .value-icon {
    width: 60px;
    height: 60px;
  }

  .service-icon i,
  .process-icon i,
  .value-icon i {
    font-size: 1.5rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* Mobile Responsiveness Enhancements */
@media (max-width: 768px) {
  /* Padding and margin adjustments */
  .container,
  .section-padding {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.95);
  }

  .hero-section {
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .scroll-indicator {
    bottom: 1rem;
    width: 20px;
    height: 35px;
  }

  .scroll-dot {
    width: 3px;
    height: 10px;
    margin-top: 6px;
  }

  .portfolio-image img {
    height: 180px;
  }

  .btn-gradient {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .service-card,
  .portfolio-card,
  .team-card {
    margin-bottom: 1.5rem;
  }

  .step-number {
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .portfolio-content {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .display-4 {
    font-size: 1.5rem;
  }

  .service-icon,
  .process-icon,
  .value-icon {
    width: 50px;
    height: 50px;
  }

  .service-icon i,
  .process-icon i,
  .value-icon i {
    font-size: 1.2rem;
  }

  .btn-gradient {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .portfolio-image img {
    height: 150px;
  }
}
