/* Custom Styles for Enhanced Portfolio Experience */

/* Modern Color Palette */
:root {
  --primary-color: #fd7e14;
  --secondary-color: #667eea;
  --accent-color: #764ba2;
  --dark-color: #2d3748;
  --light-color: #f7fafc;
  --success-color: #48bb78;
  --info-color: #4299e1;
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
}

/* Achievement Cards - Modern Glass Morphism */
.achievement-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
  color: white;
  border-radius: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.achievement-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-xl);
}

.achievement-card h3 {
  color: white !important;
  font-weight: 700;
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.achievement-card p {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.95;
}

/* Animation for skill bars */
.progress-bar {
  animation: progressAnimation 2s ease-in-out;
  transition: width 0.6s ease;
}

@keyframes progressAnimation {
  0% {
    width: 0%;
  }
  100% {
    width: var(--target-width, 0%);
  }
}

/* Modern Skill Category - Card Style */
.skill-category {
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border-radius: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  height: 100%;
}

.skill-category:hover {
  background: linear-gradient(135deg, #ffffff 0%, #fef5f1 100%);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.skill-category h4 {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
}

.skill-category h4 i {
  font-size: 1.5rem;
  vertical-align: middle;
}

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

.skill-item:hover {
  transform: translateX(5px);
}

/* Modern Progress Bars */
.progress {
  height: 10px;
  border-radius: 20px;
  background-color: #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  overflow: visible;
}

.progress-bar {
  border-radius: 20px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: width 1s ease-in-out;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-bar.bg-primary {
  background: linear-gradient(90deg, var(--primary-color) 0%, #ff9a56 100%);
}

.progress-bar.bg-success {
  background: linear-gradient(90deg, var(--success-color) 0%, #68d391 100%);
}

.progress-bar.bg-info {
  background: linear-gradient(90deg, var(--info-color) 0%, #63b3ed 100%);
}

/* Modern Resume Items - Card Based */
.resume-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem;
  border-radius: 15px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  margin-bottom: 2rem !important;
  position: relative;
  overflow: hidden;
}

.resume-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: scaleY(0);
  transition: transform 0.4s ease;
}

.resume-item:hover::before {
  transform: scaleY(1);
}

.resume-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #ffffff 0%, #fef5f1 100%);
}

.resume-item h3 {
  color: var(--dark-color);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.resume-item .subheading {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.resume-item .resume-date {
  font-weight: 600;
}

/* Nested list styling for experience details */
.resume-item ul {
  margin-bottom: 0;
}

.resume-item ul ul {
  margin-top: 0.5rem;
  margin-left: 1.5rem;
  list-style-type: circle;
}

.resume-item ul ul li {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

.resume-item ul > li {
  margin-bottom: 1rem;
}

.resume-item ul > li:last-child {
  margin-bottom: 0;
}

/* Strong text in lists */
.resume-item li strong {
  color: #212529;
  font-weight: 600;
}

/* Tech stack highlighting */
.resume-item p strong {
  color: #fd7e14;
}

/* Enhanced social icons with animation */
.social-icons a {
  display: inline-block;
  height: 3rem;
  width: 3rem;
  background-color: #6c757d;
  color: white !important;
  border-radius: 50%;
  text-align: center;
  font-size: 1.25rem;
  line-height: 3rem;
  margin-right: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-icons a:hover {
  background-color: #fd7e14;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 10;
}

/* Enhanced profile image */
.img-profile {
  transition: all 0.3s ease;
  border: 0.5rem solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.img-profile:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Enhanced navigation */
#sideNav .navbar-nav .nav-item .nav-link {
  position: relative;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  margin: 0.25rem;
}

#sideNav .navbar-nav .nav-item .nav-link:hover {
  background-color: rgba(253, 126, 20, 0.1);
  transform: translateX(5px);
}

/* Section Headers with Modern Design */
section.resume-section h2 {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

section.resume-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 10px;
}

/* Enhanced personal story - Card Style */
.personal-story {
  margin-bottom: 2rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border-radius: 15px;
  border-left: 6px solid var(--primary-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.personal-story::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(253, 126, 20, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.personal-story:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-left-width: 8px;
}

.personal-story h3 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.personal-story p {
  line-height: 1.8;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.personal-story p strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Modern Contact Cards */
.contact-info, .contact-links {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.contact-info:hover, .contact-links:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  background: linear-gradient(135deg, #ffffff 0%, #fef5f1 100%);
}

.contact-info ul li {
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.contact-info ul li:hover {
  transform: translateX(5px);
  color: #fd7e14;
}

.contact-info ul li i {
  width: 30px;
  text-align: center;
}

/* Modern Button Styles */
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff9a56 100%);
  border: none;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff9a56 100%);
  border-color: var(--primary-color);
  color: white;
}

.btn-outline-dark {
  border: 2px solid var(--dark-color);
  color: var(--dark-color);
}

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

.btn-outline-info {
  border: 2px solid var(--info-color);
  color: var(--info-color);
}

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

/* Modern Badge Styling */
.badge {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.badge-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff9a56 100%);
  box-shadow: 0 2px 4px rgba(253, 126, 20, 0.3);
}

.badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Subheading enhancements */
.subheading {
  color: #6c757d;
  font-weight: 500;
}

/* Section improvements */
section.resume-section {
  min-height: auto;
}

/* Icon enhancements */
.fas, .fab {
  transition: all 0.3s ease;
}

.text-primary:hover {
  color: #fd7e14 !important;
}

/* Border and rounded elements */
.border {
  border: 2px solid #dee2e6 !important;
  transition: all 0.3s ease;
}

.border:hover {
  border-color: #fd7e14 !important;
}

.rounded {
  border-radius: 10px !important;
}

/* Background light sections */
.bg-light {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation for images */
img {
  transition: all 0.3s ease;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .personal-story {
    padding: 1.5rem;
  }
  
  .achievement-card {
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .social-icons a {
    height: 2.5rem;
    width: 2.5rem;
    line-height: 2.5rem;
    font-size: 1rem;
    margin-right: 0.5rem;
  }
  
  .skill-category {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .btn-block {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 576px) {
  .achievement-card h3 {
    font-size: 1.5rem;
  }
  
  .achievement-card p {
    font-size: 0.85rem;
  }
}

/* Print styles */
@media print {
  #sideNav {
    display: none;
  }
  
  .resume-section {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    page-break-inside: avoid;
  }
  
  .achievement-card,
  .skill-category,
  .personal-story {
    box-shadow: none !important;
    border: 1px solid #dee2e6 !important;
  }
  
  .btn {
    display: none;
  }
  
  a[href]:after {
    content: none !important;
  }
}

/* Accessibility improvements */
a:focus,
button:focus,
.btn:focus {
  outline: 2px solid #fd7e14;
  outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .skill-category {
    background: #2d3748;
    color: #e2e8f0;
  }
  
  .personal-story {
    background: rgba(253, 126, 20, 0.1);
    color: #e2e8f0;
  }
}