/* Custom styling for Muhammad Israr's portfolio - Dark Theme */

/* Update primary color scheme for dark e-commerce professional theme */
:root {
  --primary-color: #4facfe;
  --secondary-color: #8e2de2;
  --accent-color: #00f2fe;
  --success-color: #56ab2f;
  --text-light: #a8a8a8;
  --dark-bg-1: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  --dark-bg-2: linear-gradient(45deg, #0d1b2a 0%, #1b263b 50%, #2d3748 100%);
  --gradient-1: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-2: linear-gradient(135deg, #8e2de2 0%, #4facfe 100%);
}

/* Dark hero background with materials */
.hero {
  background: var(--dark-bg-1);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(79, 172, 254, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(142, 45, 226, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, transparent 40%, rgba(0, 242, 254, 0.05) 50%, transparent 60%);
  animation: heroParticles 20s ease-in-out infinite;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

@keyframes heroParticles {
  0%, 100% { 
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% { 
    transform: translate(-30px, -20px) scale(1.1);
    opacity: 0.8;
  }
  50% { 
    transform: translate(20px, -30px) scale(0.9);
    opacity: 0.7;
  }
  75% { 
    transform: translate(-20px, 20px) scale(1.05);
    opacity: 0.9;
  }
}

/* Enhanced button styling for dark theme */
.btn-primary {
  background: var(--gradient-2);
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(79, 172, 254, 0.6), 0 0 30px rgba(142, 45, 226, 0.3);
}

/* Enhanced navbar styling for dark theme */
.navbar-brand {
  font-weight: 700 !important;
  font-size: 1.8rem !important;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dark theme hero text styling */
.hero .text h1, .hero .text h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .text .subheading {
  color: var(--accent-color) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero .text h1 span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Professional color scheme for progress bars */
.progress-bar.color-1 { background: var(--primary-color); }
.progress-bar.color-2 { background: var(--accent-color); }
.progress-bar.color-3 { background: var(--success-color); }
.progress-bar.color-4 { background: var(--secondary-color); }
.progress-bar.color-5 { background: #e74c3c; }
.progress-bar.color-6 { background: #9b59b6; }

/* Enhanced service icons */
.services-1 {
  position: relative;
  overflow: hidden;
}

.services-1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.services-1:hover::before {
  opacity: 0.1;
}

/* Professional section headings */
.heading-section h2 {
  color: var(--secondary-color);
  font-weight: 700;
}

.heading-section .big {
  color: rgba(44, 90, 160, 0.1);
}

/* Contact section enhancements */
.contact-info .box {
  transition: all 0.3s ease;
  border-radius: 10px;
}

.contact-info .box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info .box .icon {
  background: var(--gradient-2);
  color: white;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
}

/* Resume section styling */
.resume-wrap {
  border-left: 4px solid var(--primary-color);
  background: rgba(44, 90, 160, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.resume-wrap:hover {
  background: rgba(44, 90, 160, 0.1);
  transform: translateX(5px);
}

.resume-wrap .date {
  background: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
}

/* Project thumbnails enhancement */
.project.img {
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  min-height: 250px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.project.img:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.project.img .overlay {
  background: linear-gradient(45deg, rgba(44, 90, 160, 0.8), rgba(52, 152, 219, 0.7));
  opacity: 0;
  transition: all 0.3s ease;
}

.project.img:hover .overlay {
  opacity: 1;
}

.project.img .text {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.project.img:hover .text {
  opacity: 1;
  transform: translateY(0);
}

.project.img .text h3 a {
  color: white;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
}

.project.img .text span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
}

/* About section image styling */
.img-about .img {
  border-radius: 20px;
  overflow: hidden;
}

/* Enhanced typography */
.subheading {
  color: var(--accent-color) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Professional animation delays */
.ftco-animate {
  animation-delay: 0.1s;
}

/* Mobile responsiveness enhancements */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.4rem !important;
  }
  
  .hero .text h1 {
    font-size: 2rem;
  }
  
  .hero .text h2 {
    font-size: 1.2rem;
  }
}

/* Skills section enhancements */
.progress-wrap h3 {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

.progress {
  height: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.progress-bar {
  border-radius: 10px;
  transition: width 2s ease-in-out;
  position: relative;
}

.progress-bar span {
  position: absolute;
  right: 10px;
  top: -25px;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary-color);
}